forked from aniani/vim
patch 8.2.2184: Vim9: no error when using "2" for a line number
Problem: Vim9: no error when using "2" for a line number. Solution: Give an error message if the line number is invalid. (closes #7492)
This commit is contained in:
@@ -30,7 +30,7 @@ func Test_move_cursor()
|
||||
call cursor(1, 1, 1)
|
||||
call assert_equal([1, 1, 1], getcurpos()[1:3])
|
||||
|
||||
call assert_equal(-1, cursor(-1, -1))
|
||||
call assert_fails('call cursor(-1, -1)', 'E475:')
|
||||
|
||||
quit!
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user