To: vim_dev@googlegroups.com Subject: Patch 8.2.2746 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///