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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user