Patch 8.2.2746 (after 8.2.2745)
Problem: Check for duplicate arguments does not work.
Solution: Correct condition.
Files: src/userfunc.c
*** ../vim-8.2.2745/src/userfunc.c 2021-04-10 17:46:48.271318923 +0200
--- src/userfunc.c 2021-04-10 18:20:08.577503245 +0200
***************
*** 109,115 ****
return arg;
}
is_underscore = arg_copy[0] == '_' && arg_copy[1] == NUL;
! if (argtypes != NULL && !is_underscore)
// Check for duplicate argument name.
for (i = 0; i < newargs->ga_len; ++i)
if (STRCMP(((char_u **)(newargs->ga_data))[i], arg_copy) == 0)
--- 109,115 ----
return arg;
}
is_underscore = arg_copy[0] == '_' && arg_copy[1] == NUL;
! if (argtypes == NULL || !is_underscore)
// Check for duplicate argument name.
for (i = 0; i < newargs->ga_len; ++i)
if (STRCMP(((char_u **)(newargs->ga_data))[i], arg_copy) == 0)
*** ../vim-8.2.2745/src/version.c 2021-04-10 17:46:48.275318937 +0200
--- src/version.c 2021-04-10 18:21:19.121234782 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2746,
/**/
--
The sooner you fall behind, the more time you'll have to catch up.
/// 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/202104101622.13AGMCmK234904%40masaka.moolenaar.net.