mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1480: Vim9: skip expression in search() gives error
Problem: Vim9: skip expression in search() gives error. Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729)
This commit is contained in:
@@ -326,7 +326,7 @@ eval_expr_to_bool(typval_T *expr, int *error)
|
||||
*error = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
res = (tv_get_number_chk(&rettv, error) != 0);
|
||||
res = (tv_get_bool_chk(&rettv, error) != 0);
|
||||
clear_tv(&rettv);
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user