1
0
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:
Bram Moolenaar
2020-12-21 21:58:46 +01:00
parent 60f63100b9
commit 9a963377b4
5 changed files with 21 additions and 3 deletions

View File

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