diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-06-22 16:03:05 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-06-22 16:03:05 +0000 |
commit | 9dfb0f808f85b102ac1082c9f6ae7b695e7b15cd (patch) | |
tree | e183929bebd8459a17aa5082d4d34ac1e783cf96 /src/eval.c | |
parent | 5fcc3fead5d01039182ba266b9c53a64fdf31ee1 (diff) | |
download | vim-9dfb0f808f85b102ac1082c9f6ae7b695e7b15cd.zip |
updated for version 7.0-025
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 45872be35..8e4164940 100644 --- a/src/eval.c +++ b/src/eval.c @@ -13250,7 +13250,7 @@ f_remove(argvars, rettv) if (argvars[2].v_type != VAR_UNKNOWN) EMSG2(_(e_toomanyarg), "remove()"); else if ((d = argvars[0].vval.v_dict) != NULL - && !tv_check_lock(d->dv_lock, (char_u *)"remove()")) + && !tv_check_lock(d->dv_lock, (char_u *)"remove() argument")) { key = get_tv_string_chk(&argvars[1]); if (key != NULL) @@ -13270,7 +13270,7 @@ f_remove(argvars, rettv) else if (argvars[0].v_type != VAR_LIST) EMSG2(_(e_listdictarg), "remove()"); else if ((l = argvars[0].vval.v_list) != NULL - && !tv_check_lock(l->lv_lock, (char_u *)"remove()")) + && !tv_check_lock(l->lv_lock, (char_u *)"remove() argument")) { int error = FALSE; @@ -19693,6 +19693,7 @@ call_user_func(fp, argcount, argvars, rettv, firstline, lastline, selfdict) v->di_tv.vval.v_list = &fc.l_varlist; vim_memset(&fc.l_varlist, 0, sizeof(list_T)); fc.l_varlist.lv_refcount = 99999; + fc.l_varlist.lv_lock = VAR_FIXED; /* * Set a:firstline to "firstline" and a:lastline to "lastline". |