0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.1878: negative float before method not parsed correctly

Problem:    Negative float before method not parsed correctly.
Solution:   Apply "!" and "-" in front of expression before using ->.
This commit is contained in:
Bram Moolenaar
2019-08-17 21:04:16 +02:00
parent ffc0716af8
commit 9cfe8f6e68
5 changed files with 92 additions and 61 deletions

View File

@@ -3165,8 +3165,9 @@ ex_call(exarg_T *eap)
if (has_watchexpr())
dbg_check_breakpoint(eap);
/* Handle a function returning a Funcref, Dictionary or List. */
if (handle_subscript(&arg, &rettv, !eap->skip, TRUE) == FAIL)
// Handle a function returning a Funcref, Dictionary or List.
if (handle_subscript(&arg, &rettv, !eap->skip, TRUE,
name, &name) == FAIL)
{
failed = TRUE;
break;