diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-10 13:15:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-10 13:15:47 +0200 |
commit | 8c87a2b1fec85e4aac33f71586ac1514536fc66b (patch) | |
tree | 87a7f334865bad68bc1488ac415c19105e7ad979 /src/testdir/test_blockedit.vim | |
parent | e80757c1545286240d687e9a303cf8eeb3f9a6de (diff) |
patch 8.0.1682: auto indenting breaks inserting a blockv8.0.1682
Problem: Auto indenting breaks inserting a block.
Solution: Do not check for cursor movement if indent was changed. (Christian
Brabandt, closes #2778)
Diffstat (limited to 'src/testdir/test_blockedit.vim')
-rw-r--r-- | src/testdir/test_blockedit.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_blockedit.vim b/src/testdir/test_blockedit.vim new file mode 100644 index 0000000000..4a8d59952e --- /dev/null +++ b/src/testdir/test_blockedit.vim @@ -0,0 +1,20 @@ +" Test for block inserting +" +" TODO: rewrite test39.in into this new style test + +func Test_blockinsert_indent() + new + filetype plugin indent on + setlocal sw=2 et ft=vim + call setline(1, ['let a=[', ' ''eins'',', ' ''zwei'',', ' ''drei'']']) + call cursor(2, 3) + exe "norm! \<c-v>2jI\\ \<esc>" + call assert_equal(['let a=[', ' \ ''eins'',', ' \ ''zwei'',', ' \ ''drei'']'], + \ getline(1,'$')) + " reset to sane state + filetype off + bwipe! +endfunc + + +" vim: shiftwidth=2 sts=2 expandtab |