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 -- [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/20230311161918.2C0FC1C0D07%40moolenaar.net.