diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-08 05:13:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-08 05:13:15 +0100 |
commit | f5f1e10d0d39890298cdf27f664d466c8872b87e (patch) | |
tree | 5485b5ec47d1236a14e2db3dc0fecc87d6e7ce5d /src/testdir/test_cindent.vim | |
parent | d0d440f702d1c6fef36386f8b91d074d0f3e4718 (diff) |
patch 8.2.0363: some Normal mode commands not testedv8.2.0363
Problem: Some Normal mode commands not tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5746)
Diffstat (limited to 'src/testdir/test_cindent.vim')
-rw-r--r-- | src/testdir/test_cindent.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim index dfafd01786..9258192897 100644 --- a/src/testdir/test_cindent.vim +++ b/src/testdir/test_cindent.vim @@ -5258,9 +5258,18 @@ func Test_cindent_case() set cindent norm! f:a: call assert_equal('case x:: // x', getline(1)) - set cindent& bwipe! endfunc +" Test for changing multiple lines (using c) with cindent +func Test_cindent_change_multline() + new + setlocal cindent + call setline(1, ['if (a)', '{', ' i = 1;', '}']) + normal! jc3jm = 2; + call assert_equal("\tm = 2;", getline(2)) + close! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |