Patch 8.2.3282

90 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 4, 2021, 11:06:14 AM8/4/21
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages