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 
\"<afile>\""));
! EXTERN char e_no_autocommand_buffer_name_to_substitute_for_abuf[]
        INIT(= N_("E496: No autocommand buffer number to substitute for 
\"<abuf>\""));
  EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[]
        INIT(= N_("E497: No autocommand match name to substitute for 
\"<amatch>\""));
--- 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 
\"<afile>\""));
! EXTERN char e_no_autocommand_buffer_number_to_substitute_for_abuf[]
        INIT(= N_("E496: No autocommand buffer number to substitute for 
\"<abuf>\""));
  EXTERN char e_no_autocommand_match_name_to_substitute_for_amatch[]
        INIT(= N_("E497: No autocommand match name to substitute for 
\"<amatch>\""));
*** ../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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230505220007.79FF11C1B21%40moolenaar.net.

Reply via email to