comparison src/testdir/test_eval_stuff.vim @ 23768:1a53383f08e5 v8.2.2425

patch 8.2.2425: cursor on invalid line with range and :substitute Commit: https://github.com/vim/vim/commit/df2c2988bbaecd28b0fbec8d64327b1bbb005e19 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 28 20:18:08 2021 +0100 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 https://github.com/vim/vim/issues/3434)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jan 2021 20:30:03 +0100
parents cd06cc37f53f
children 82d2c859eb0c
comparison
equal deleted inserted replaced
23767:51c399104d33 23768:1a53383f08e5
66 66
67 func Test_for_invalid() 67 func Test_for_invalid()
68 call assert_fails("for x in 99", 'E714:') 68 call assert_fails("for x in 99", 'E714:')
69 call assert_fails("for x in 'asdf'", 'E714:') 69 call assert_fails("for x in 'asdf'", 'E714:')
70 call assert_fails("for x in {'a': 9}", 'E714:') 70 call assert_fails("for x in {'a': 9}", 'E714:')
71
72 if 0
73 /1/5/2/s/\n
74 endif
75 redraw
71 endfunc 76 endfunc
72 77
73 func Test_readfile_binary() 78 func Test_readfile_binary()
74 new 79 new
75 call setline(1, ['one', 'two', 'three']) 80 call setline(1, ['one', 'two', 'three'])