comparison src/testdir/test_cindent.vim @ 19613:9c15be376631 v8.2.0363

patch 8.2.0363: some Normal mode commands not tested Commit: https://github.com/vim/vim/commit/f5f1e10d0d39890298cdf27f664d466c8872b87e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 8 05:13:15 2020 +0100 patch 8.2.0363: some Normal mode commands not tested Problem: Some Normal mode commands not tested. Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5746)
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Mar 2020 05:15:04 +0100
parents 2ef19eed524a
children d30b16692ce0
comparison
equal deleted inserted replaced
19612:a70ee453358e 19613:9c15be376631
5256 new 5256 new
5257 call setline(1, 'case x: // x') 5257 call setline(1, 'case x: // x')
5258 set cindent 5258 set cindent
5259 norm! f:a: 5259 norm! f:a:
5260 call assert_equal('case x:: // x', getline(1)) 5260 call assert_equal('case x:: // x', getline(1))
5261
5262 set cindent& 5261 set cindent&
5263 bwipe! 5262 bwipe!
5264 endfunc 5263 endfunc
5265 5264
5265 " Test for changing multiple lines (using c) with cindent
5266 func Test_cindent_change_multline()
5267 new
5268 setlocal cindent
5269 call setline(1, ['if (a)', '{', ' i = 1;', '}'])
5270 normal! jc3jm = 2;
5271 call assert_equal("\tm = 2;", getline(2))
5272 close!
5273 endfunc
5274
5266 " vim: shiftwidth=2 sts=2 expandtab 5275 " vim: shiftwidth=2 sts=2 expandtab