comparison src/mbyte.c @ 30015:adb0de8be4ce v9.0.0345

patch 9.0.0345: error message for list argument could be clearer Commit: https://github.com/vim/vim/commit/d83392a43a48c566c0f3b76382a3648584dae32b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 12:22:46 2022 +0100 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 https://github.com/vim/vim/issues/11027)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 13:30:05 +0200
parents 0cea0cdcce92
children f5cbf8a4043d
comparison
equal deleted inserted replaced
30014:3fb163e2ef6c 30015:adb0de8be4ce
5533 cw_interval_T *table; 5533 cw_interval_T *table;
5534 cw_interval_T *cw_table_save; 5534 cw_interval_T *cw_table_save;
5535 size_t cw_table_size_save; 5535 size_t cw_table_size_save;
5536 char *error = NULL; 5536 char *error = NULL;
5537 5537
5538 if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL) 5538 if (check_for_nonnull_list_arg(argvars, 0) == FAIL)
5539 return; 5539 return;
5540 5540
5541 if (argvars[0].v_type != VAR_LIST || argvars[0].vval.v_list == NULL)
5542 {
5543 emsg(_(e_list_required));
5544 return;
5545 }
5546 l = argvars[0].vval.v_list; 5541 l = argvars[0].vval.v_list;
5547 if (l->lv_len == 0) 5542 if (l->lv_len == 0)
5548 { 5543 {
5549 // Clearing the table. 5544 // Clearing the table.
5550 vim_free(cw_table); 5545 vim_free(cw_table);