diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-28 20:18:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-28 20:18:08 +0100 |
commit | df2c2988bbaecd28b0fbec8d64327b1bbb005e19 (patch) | |
tree | 8dea246c6df12a4591b94a69cc368a6bf1caccd3 /src/testdir/test_eval_stuff.vim | |
parent | 97202d951685fc4d90085da676a90644cbf72571 (diff) | |
download | vim-git-df2c2988bbaecd28b0fbec8d64327b1bbb005e19.tar.gz |
patch 8.2.2425: cursor on invalid line with range and :substitutev8.2.2425
Problem: Cursor on invalid line with range and :substitute.
Solution: Do not move the cursor when skipping commands. (closes #3434)
Diffstat (limited to 'src/testdir/test_eval_stuff.vim')
-rw-r--r-- | src/testdir/test_eval_stuff.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim index 52e8df924..95f5b2497 100644 --- a/src/testdir/test_eval_stuff.vim +++ b/src/testdir/test_eval_stuff.vim @@ -68,6 +68,11 @@ func Test_for_invalid() call assert_fails("for x in 99", 'E714:') call assert_fails("for x in 'asdf'", 'E714:') call assert_fails("for x in {'a': 9}", 'E714:') + + if 0 + /1/5/2/s/\n + endif + redraw endfunc func Test_readfile_binary() |