diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-06 00:52:35 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-06 00:55:30 -0400 |
| commit | 296711cfad7bb8d80f2e2c363b3708764156444f (patch) | |
| tree | 57623fc268dbf5d2a919f04aa3d66c78bff78cb4 /src/nvim/testdir | |
| parent | dad17caa874ecab338c9bf9691850f27a20c65ab (diff) | |
| download | rneovim-296711cfad7bb8d80f2e2c363b3708764156444f.tar.gz rneovim-296711cfad7bb8d80f2e2c363b3708764156444f.tar.bz2 rneovim-296711cfad7bb8d80f2e2c363b3708764156444f.zip | |
vim-patch:8.2.2829: some comments are not correct or clear
Problem: Some comments are not correct or clear.
Solution: Adjust the comments. Add test for cursor position.
https://github.com/vim/vim/commit/df36514a6455342e178af693553ef9df9fcf8c83
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_exec_while_if.vim | 8 | ||||
| -rw-r--r-- | src/nvim/testdir/test_substitute.vim | 9 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_exec_while_if.vim b/src/nvim/testdir/test_exec_while_if.vim index d6afabff45..3da2784d77 100644 --- a/src/nvim/testdir/test_exec_while_if.vim +++ b/src/nvim/testdir/test_exec_while_if.vim @@ -1,6 +1,6 @@ -" Test for :execute, :while and :if +" Test for :execute, :while, :for and :if -function Test_exec_while_if() +func Test_exec_while_if() new let i = 0 @@ -50,4 +50,6 @@ function Test_exec_while_if() \ "7x999999999888888887777777666666555554444333221", \ "8", \ "9x"], getline(1, 10)) -endfunction +endfunc + +" vim: shiftwidth=2 sts=2 expandtab diff --git a/src/nvim/testdir/test_substitute.vim b/src/nvim/testdir/test_substitute.vim index cc3bfe9f7f..32167a45ba 100644 --- a/src/nvim/testdir/test_substitute.vim +++ b/src/nvim/testdir/test_substitute.vim @@ -754,4 +754,13 @@ func Test_submatch_list_concatenate() call assert_equal(substitute('A1', pat, Rep, ''), "[['A1'], ['1']]") endfunc +func Test_substitute_skipped_range() + new + if 0 + /1/5/2/2/\n + endif + call assert_equal([0, 1, 1, 0, 1], getcurpos()) + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |