To: vim_dev@googlegroups.com Subject: Patch 9.0.1401 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1401 Problem: Condition is always true. Solution: Remove the condition. (closes #12139) Files: src/eval.c *** ../vim-9.0.1400/src/eval.c 2023-03-07 17:13:47.305107775 +0000 --- src/eval.c 2023-03-11 16:16:39.281312952 +0000 *************** *** 6885,6904 **** *arg = skipwhite(p + 2); else *arg = p + 2; ! if (ret == OK) { ! if (VIM_ISWHITE(**arg)) ! { ! emsg(_(e_no_white_space_allowed_before_parenthesis)); ! ret = FAIL; ! } ! else if ((**arg == '{' && !in_vim9script()) || **arg == '(') ! // expr->{lambda}() or expr->(lambda)() ! ret = eval_lambda(arg, rettv, evalarg, verbose); ! else ! // expr->name() ! ret = eval_method(arg, rettv, evalarg, verbose); } } // "." is ".name" lookup when we found a dict or when evaluating and // scriptversion is at least 2, where string concatenation is "..". --- 6885,6901 ---- *arg = skipwhite(p + 2); else *arg = p + 2; ! if (VIM_ISWHITE(**arg)) { ! emsg(_(e_no_white_space_allowed_before_parenthesis)); ! ret = FAIL; } + else if ((**arg == '{' && !in_vim9script()) || **arg == '(') + // expr->{lambda}() or expr->(lambda)() + ret = eval_lambda(arg, rettv, evalarg, verbose); + else + // expr->name() + ret = eval_method(arg, rettv, evalarg, verbose); } // "." is ".name" lookup when we found a dict or when evaluating and // scriptversion is at least 2, where string concatenation is "..". *** ../vim-9.0.1400/src/version.c 2023-03-11 13:55:49.191639723 +0000 --- src/version.c 2023-03-11 16:18:00.929168850 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1401, /**/ -- hundred-and-one symptoms of being an internet addict: 263. You have more e-mail addresses than shorts. /// 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 ///