mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -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:
@@ -5535,14 +5535,9 @@ f_setcellwidths(typval_T *argvars, typval_T *rettv UNUSED)
|
||||
size_t cw_table_size_save;
|
||||
char *error = NULL;
|
||||
|
||||
if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL)
|
||||
if (check_for_nonnull_list_arg(argvars, 0) == FAIL)
|
||||
return;
|
||||
|
||||
if (argvars[0].v_type != VAR_LIST || argvars[0].vval.v_list == NULL)
|
||||
{
|
||||
emsg(_(e_list_required));
|
||||
return;
|
||||
}
|
||||
l = argvars[0].vval.v_list;
|
||||
if (l->lv_len == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user