aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/userfunc.c
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-07 15:18:04 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-08-12 22:35:23 +0100
commit7474db98afcae3a47732d1ba99971b500a519cb2 (patch)
tree40ddcde1aefce987999830078931d54cbd6d4fba /src/nvim/eval/userfunc.c
parent98dfe4adc48d83e05b2ee039869853760de9c096 (diff)
downloadrneovim-7474db98afcae3a47732d1ba99971b500a519cb2.tar.gz
rneovim-7474db98afcae3a47732d1ba99971b500a519cb2.tar.bz2
rneovim-7474db98afcae3a47732d1ba99971b500a519cb2.zip
vim-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 ->. https://github.com/vim/vim/commit/9cfe8f6e68de4bfb5942d84f4465de914a747b3f
Diffstat (limited to 'src/nvim/eval/userfunc.c')
-rw-r--r--src/nvim/eval/userfunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index 59f07ff486..4f10d31615 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -2980,7 +2980,8 @@ void ex_call(exarg_T *eap)
}
// Handle a function returning a Funcref, Dictionary or List.
- if (handle_subscript((const char **)&arg, &rettv, true, true)
+ if (handle_subscript((const char **)&arg, &rettv, true, true,
+ (const char_u *)name, (const char_u **)&name)
== FAIL) {
failed = true;
break;