mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.2.2172: Vim9: number of arguments is not always checked
Problem: Vim9: number of arguments is not always checked. (Yegappan Lakshmanan) Solution: Check number of arguments when calling function by name.
This commit is contained in:
@@ -1312,12 +1312,12 @@ def Test_vim9script_reload_delfunc()
|
||||
# FuncNo() is not redefined
|
||||
writefile(first_lines + nono_lines, 'Xreloaded.vim')
|
||||
source Xreloaded.vim
|
||||
g:DoCheck()
|
||||
g:DoCheck(false)
|
||||
|
||||
# FuncNo() is back
|
||||
writefile(first_lines + withno_lines, 'Xreloaded.vim')
|
||||
source Xreloaded.vim
|
||||
g:DoCheck()
|
||||
g:DoCheck(false)
|
||||
|
||||
delete('Xreloaded.vim')
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user