diff options
Diffstat (limited to 'src/testdir/test_smartindent.vim')
-rw-r--r-- | src/testdir/test_smartindent.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_smartindent.vim b/src/testdir/test_smartindent.vim index 7b58af2491..edfec9a809 100644 --- a/src/testdir/test_smartindent.vim +++ b/src/testdir/test_smartindent.vim @@ -134,4 +134,21 @@ func Test_si_with_paste() bw! endfunc +func Test_si_after_completion() + new + setlocal ai smartindent indentexpr= + call setline(1, 'foo foot') + call feedkeys("o f\<C-X>\<C-N>#", 'tx') + call assert_equal(' foo#', getline(2)) + bwipe! +endfunc + +func Test_no_si_after_completion() + new + call setline(1, 'foo foot') + call feedkeys("o f\<C-X>\<C-N>#", 'tx') + call assert_equal(' foo#', getline(2)) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |