To: vim_dev@googlegroups.com Subject: Patch 9.0.1510 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1510 Problem: Misleading variable name for error message. Solution: Change "name" to "number". (closes #12345) Files: src/ex_docmd.c, src/errors.h *** ../vim-9.0.1509/src/ex_docmd.c 2023-04-15 13:17:22.879094522 +0100 --- src/ex_docmd.c 2023-05-05 22:56:10.869411955 +0100 *************** *** 6150,6156 **** tab_number = tabpage_index(lastused_tabpage); else { ! eap->errmsg = ex_errmsg(e_invalid_value_for_argument_str, eap->arg); tab_number = 0; goto theend; } --- 6150,6157 ---- tab_number = tabpage_index(lastused_tabpage); else { ! eap->errmsg = ex_errmsg(e_invalid_value_for_argument_str, ! eap->arg); tab_number = 0; goto theend; } *************** *** 9380,9386 **** case SPEC_ABUF: // buffer number for autocommand if (autocmd_bufnr <= 0) { ! *errormsg = _(e_no_autocommand_buffer_name_to_substitute_for_abuf); return NULL; } sprintf((char *)strbuf, "%d", autocmd_bufnr); --- 9381,9387 ---- case SPEC_ABUF: // buffer number for autocommand if (autocmd_bufnr <= 0) { ! *errormsg = _(e_no_autocommand_buffer_number_to_substitute_for_abuf); return NULL; } sprintf((char *)strbuf, "%d", autocmd_bufnr); *** ../vim-9.0.1509/src/errors.h 2023-04-22 21:14:21.585140551 +0100 --- src/errors.h 2023-05-05 22:57:17.421232224 +0100 *************** *** 1236,1242 **** INIT(= N_("E494: Use w or w>>")); EXTERN char e_no_autocommand_file_name_to_substitute_for_afile[] INIT(= N_("E495: No autocommand file name to substitute for \"\"")); ! EXTERN char e_no_autocommand_buffer_name_to_substitute_for_abuf[] INIT(= N_("E496: No autocommand buffer number to substitute for \"\"")); EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[] INIT(= N_("E497: No autocommand match name to substitute for \"\"")); --- 1236,1242 ---- INIT(= N_("E494: Use w or w>>")); EXTERN char e_no_autocommand_file_name_to_substitute_for_afile[] INIT(= N_("E495: No autocommand file name to substitute for \"\"")); ! EXTERN char e_no_autocommand_buffer_number_to_substitute_for_abuf[] INIT(= N_("E496: No autocommand buffer number to substitute for \"\"")); EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[] INIT(= N_("E497: No autocommand match name to substitute for \"\"")); *** ../vim-9.0.1509/src/version.c 2023-05-05 22:12:19.064321405 +0100 --- src/version.c 2023-05-05 22:57:09.041253475 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1510, /**/ -- If someone questions your market projections, simply point out that your target market is "People who are nuts" and "People who will buy any damn thing". Nobody is going to tell you there aren't enough of those people to go around. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///