forked from aniani/vim
patch 8.2.3221: Vim9: argument types are not checked at compile time
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
This commit is contained in:
committed by
Bram Moolenaar
parent
2ec28aec9d
commit
a764e73d4f
@@ -2516,9 +2516,13 @@ find_popup_win(int id)
|
||||
void
|
||||
f_popup_close(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
{
|
||||
int id = (int)tv_get_number(argvars);
|
||||
int id;
|
||||
win_T *wp;
|
||||
|
||||
if (in_vim9script() && check_for_number_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
id = (int)tv_get_number(argvars);
|
||||
if (
|
||||
# ifdef FEAT_TERMINAL
|
||||
// if the popup contains a terminal it will become hidden
|
||||
|
Reference in New Issue
Block a user