mirror of
https://github.com/neovim/neovim.git
synced 2025-12-07 23:22:39 +00:00
vim-patch:9.0.0335: checks for Dictionary argument often give a vague error (#23309)
Problem: Checks for Dictionary argument often give a vague error message.
Solution: Give a useful error message. (Yegappan Lakshmanan, closes vim/vim#11009)
04c4c5746e
Cherry-pick removal of E922 from docs from patch 9.0.1403.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -735,7 +735,7 @@ func Test_relative_cursor_position_in_one_line_window()
|
||||
|
||||
only!
|
||||
bwipe!
|
||||
call assert_fails('call winrestview(v:_null_dict)', 'E474:')
|
||||
call assert_fails('call winrestview(v:_null_dict)', 'E1297:')
|
||||
endfunc
|
||||
|
||||
func Test_relative_cursor_position_after_move_and_resize()
|
||||
@@ -936,7 +936,7 @@ func Test_winrestview()
|
||||
call assert_equal(view, winsaveview())
|
||||
|
||||
bwipe!
|
||||
call assert_fails('call winrestview(v:_null_dict)', 'E474:')
|
||||
call assert_fails('call winrestview(v:_null_dict)', 'E1297:')
|
||||
endfunc
|
||||
|
||||
func Test_win_splitmove()
|
||||
@@ -967,7 +967,7 @@ func Test_win_splitmove()
|
||||
call assert_equal(bufname(winbufnr(2)), 'b')
|
||||
call assert_equal(bufname(winbufnr(3)), 'a')
|
||||
call assert_equal(bufname(winbufnr(4)), 'd')
|
||||
call assert_fails('call win_splitmove(winnr(), winnr("k"), v:_null_dict)', 'E474:')
|
||||
call assert_fails('call win_splitmove(winnr(), winnr("k"), v:_null_dict)', 'E1297:')
|
||||
only | bd
|
||||
|
||||
call assert_fails('call win_splitmove(winnr(), 123)', 'E957:')
|
||||
|
||||
Reference in New Issue
Block a user