0
0
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:
Bram Moolenaar
2020-09-05 18:31:33 +02:00
parent c08cc72947
commit d217a87755
3 changed files with 10 additions and 1 deletions

View File

@@ -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;