forked from aniani/vim
patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument
Problem: Vim9: popup_clear() does not take "true" as argument. Solution: Use tv_get_bool(). (closes #6826)
This commit is contained in:
@@ -2125,7 +2125,7 @@ f_popup_clear(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
int force = FALSE;
|
||||
|
||||
if (argvars[0].v_type != VAR_UNKNOWN)
|
||||
force = (int)tv_get_number(&argvars[0]);
|
||||
force = (int)tv_get_bool(&argvars[0]);
|
||||
close_all_popups(force);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user