Bram Moolenaar | 6b64394 | 2017-03-05 19:44:06 +0100 | [diff] [blame] | 1 | " Test for cinoptions and cindent |
2 | " | ||||
3 | " TODO: rewrite test3.in into this new style test | ||||
4 | |||||
5 | func Test_cino_hash() | ||||
6 | " Test that curbuf->b_ind_hash_comment is correctly reset | ||||
7 | new | ||||
8 | setlocal cindent cinoptions=#1 | ||||
9 | setlocal cinoptions= | ||||
10 | call setline(1, ["#include <iostream>"]) | ||||
11 | call cursor(1, 1) | ||||
12 | norm! o#include | ||||
13 | "call feedkeys("o#include\<esc>", 't') | ||||
14 | call assert_equal(["#include <iostream>", "#include"], getline(1,2)) | ||||
15 | bwipe! | ||||
16 | endfunc |