1
0
forked from aniani/vim

patch 8.2.2425: cursor on invalid line with range and :substitute

Problem:    Cursor on invalid line with range and :substitute.
Solution:   Do not move the cursor when skipping commands. (closes #3434)
This commit is contained in:
Bram Moolenaar
2021-01-28 20:18:08 +01:00
parent 97202d9516
commit df2c2988bb
3 changed files with 9 additions and 0 deletions

View File

@@ -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()