mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1604: Vim9: cannot use "true" with getcompletion()
Problem: Vim9: cannot use "true" with getcompletion(). Solution: use tv_get_bool_chk(). (closes #6875)
This commit is contained in:
@@ -2885,7 +2885,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
|
||||
type = tv_get_string(&argvars[1]);
|
||||
|
||||
if (argvars[2].v_type != VAR_UNKNOWN)
|
||||
filtered = tv_get_number_chk(&argvars[2], NULL);
|
||||
filtered = tv_get_bool_chk(&argvars[2], NULL);
|
||||
|
||||
if (p_wic)
|
||||
options |= WILD_ICASE;
|
||||
|
Reference in New Issue
Block a user