mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:8.2.3158: strange error message when using islocked() with a number (#28962)
Problem: Strange error message when using islocked() with a number.
(Yegappan Lakshmanan)
Solution: Check that the name is empty.
1840a7b4e3
Use ll_name_len instead.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -4119,7 +4119,7 @@ static void f_islocked(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
FNE_CHECK_START);
|
||||
if (end != NULL && lv.ll_name != NULL) {
|
||||
if (*end != NUL) {
|
||||
semsg(_(e_trailing_arg), end);
|
||||
semsg(_(lv.ll_name_len == 0 ? e_invarg2 : e_trailing_arg), end);
|
||||
} else {
|
||||
if (lv.ll_tv == NULL) {
|
||||
dictitem_T *di = find_var(lv.ll_name, lv.ll_name_len, NULL, true);
|
||||
|
||||
Reference in New Issue
Block a user