blob: 5685c2be667bcd3ca5b5255a9dac7fa7d55c74f4 [file] [log] [blame]
Bram Moolenaar6b643942017-03-05 19:44:06 +01001" Test for cinoptions and cindent
2"
3" TODO: rewrite test3.in into this new style test
4
5func 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!
16endfunc