Patch 8.2.5093
Problem:    Error message for unknown command may mention the command twice.
            (Malcolm Rowe)
Solution:   Add the did_append_cmd flag. (closes #10570)
Files:      src/ex_docmd.c


*** ../vim-8.2.5092/src/ex_docmd.c      2022-06-14 15:43:14.876748322 +0100
--- src/ex_docmd.c      2022-06-14 16:03:23.809383884 +0100
***************
*** 1744,1749 ****
--- 1744,1750 ----
      int               did_set_expr_line = FALSE;
  #endif
      int               sourcing = flags & DOCMD_VERBOSE;
+     int               did_append_cmd = FALSE;
  
      CLEAR_FIELD(ea);
      ea.line1 = 1;
***************
*** 2019,2024 ****
--- 2020,2026 ----
                    append_command(after_modifier);
                else
                    append_command(*cmdlinep);
+               did_append_cmd = TRUE;
            }
            errormsg = (char *)IObuff;
            did_emsg_syntax = TRUE;
***************
*** 2609,2615 ****
  
      if (errormsg != NULL && *errormsg != NUL && !did_emsg)
      {
!       if (sourcing || !KeyTyped)
        {
            if (errormsg != (char *)IObuff)
            {
--- 2611,2617 ----
  
      if (errormsg != NULL && *errormsg != NUL && !did_emsg)
      {
!       if ((sourcing || !KeyTyped) && !did_append_cmd)
        {
            if (errormsg != (char *)IObuff)
            {
*** ../vim-8.2.5092/src/version.c       2022-06-14 15:43:14.880748311 +0100
--- src/version.c       2022-06-14 16:04:43.529436790 +0100
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     5093,
  /**/

-- 
My Go, this amn keyboar oesn't have a .

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220614150638.794FB1C2341%40moolenaar.net.

Raspunde prin e-mail lui