mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 9.0.0345: error message for list argument could be clearer
Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
This commit is contained in:
10
src/sign.c
10
src/sign.c
@@ -2660,11 +2660,8 @@ f_sign_placelist(typval_T *argvars, typval_T *rettv)
|
||||
if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
if (argvars[0].v_type != VAR_LIST)
|
||||
{
|
||||
emsg(_(e_list_required));
|
||||
if (check_for_list_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
}
|
||||
|
||||
// Process the List of sign attributes
|
||||
FOR_ALL_LIST_ITEMS(argvars[0].vval.v_list, li)
|
||||
@@ -2888,11 +2885,8 @@ f_sign_unplacelist(typval_T *argvars, typval_T *rettv)
|
||||
if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
if (argvars[0].v_type != VAR_LIST)
|
||||
{
|
||||
emsg(_(e_list_required));
|
||||
if (check_for_list_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
}
|
||||
|
||||
FOR_ALL_LIST_ITEMS(argvars[0].vval.v_list, li)
|
||||
{
|
||||
|
Reference in New Issue
Block a user