Patch 8.2.3282
Problem:    Vim9: error about using -complete without -nargs is confusing.
Solution:   Change the wording.
Files:      src/usercmd.c, src/errors.h


*** ../vim-8.2.3281/src/usercmd.c       2021-08-01 21:19:40.126538391 +0200
--- src/usercmd.c       2021-08-04 15:37:43.153967170 +0200
***************
*** 1077,1086 ****
        // Some plugins rely on silently ignoring the mistake, only make this
        // an error in Vim9 script.
        if (in_vim9script())
!           emsg(_(e_complete_used_without_nargs));
        else
            give_warning_with_source(
!                      (char_u *)_(e_complete_used_without_nargs), TRUE, TRUE);
      }
      else
      {
--- 1077,1087 ----
        // Some plugins rely on silently ignoring the mistake, only make this
        // an error in Vim9 script.
        if (in_vim9script())
!           emsg(_(e_complete_used_without_allowing_arguments));
        else
            give_warning_with_source(
!                      (char_u *)_(e_complete_used_without_allowing_arguments),
!                                                                  TRUE, TRUE);
      }
      else
      {
*** ../vim-8.2.3281/src/errors.h        2021-07-31 19:12:54.100411000 +0200
--- src/errors.h        2021-08-04 15:37:27.682011869 +0200
***************
*** 595,602 ****
        INIT(= N_("E1206: Dictionary required for argument %d"));
  EXTERN char e_expression_without_effect_str[]
        INIT(= N_("E1207: Expression without an effect: %s"));
! EXTERN char e_complete_used_without_nargs[]
!       INIT(= N_("E1208: -complete used without -nargs"));
  EXTERN char e_invalid_value_for_line_number_str[]
        INIT(= N_("E1209: Invalid value for a line number: \"%s\""));
  EXTERN char e_number_required_for_argument_nr[]
--- 595,602 ----
        INIT(= N_("E1206: Dictionary required for argument %d"));
  EXTERN char e_expression_without_effect_str[]
        INIT(= N_("E1207: Expression without an effect: %s"));
! EXTERN char e_complete_used_without_allowing_arguments[]
!       INIT(= N_("E1208: -complete used without allowing arguments"));
  EXTERN char e_invalid_value_for_line_number_str[]
        INIT(= N_("E1209: Invalid value for a line number: \"%s\""));
  EXTERN char e_number_required_for_argument_nr[]
*** ../vim-8.2.3281/src/version.c       2021-08-03 21:16:14.513239986 +0200
--- src/version.c       2021-08-04 16:09:10.857670823 +0200
***************
*** 757,758 ****
--- 757,760 ----
  {   /* Add new patch number below this line */
+ /**/
+     3282,
  /**/

-- 
Q: How does a UNIX Guru do Sex ?
A: unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep

 /// 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/202108041506.174F661F1059126%40masaka.moolenaar.net.

Raspunde prin e-mail lui