diff options
author | Florian Walch <florian@fwalch.com> | 2014-12-24 14:35:56 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2014-12-27 11:38:32 +0100 |
commit | 898f01dee1bf50b0a219807ae2b28f2c5c5aece7 (patch) | |
tree | 4e8a5716ba013248451ec052ebeae4b537751119 /src/nvim/eval.c | |
parent | 4ff4b9306d9ccd26c6e7c8e9b663788aa53d84ec (diff) | |
download | rneovim-898f01dee1bf50b0a219807ae2b28f2c5c5aece7.tar.gz rneovim-898f01dee1bf50b0a219807ae2b28f2c5c5aece7.tar.bz2 rneovim-898f01dee1bf50b0a219807ae2b28f2c5c5aece7.zip |
vim-patch:7.4.549
Problem: Function name not recognized correctly when inside a function.
Solution: Don't check for an alpha character.
https://code.google.com/p/vim/source/detail?r=v7-4-549
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 116944b28d..69f2f38a1a 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -17580,15 +17580,14 @@ void ex_function(exarg_T *eap) /* Check for defining a function inside this function. */ if (checkforcmd(&p, "function", 2)) { - if (*p == '!') + if (*p == '!') { p = skipwhite(p + 1); + } p += eval_fname_script(p); - if (ASCII_ISALPHA(*p)) { - free(trans_function_name(&p, TRUE, 0, NULL)); - if (*skipwhite(p) == '(') { - ++nesting; - indent += 2; - } + free(trans_function_name(&p, TRUE, 0, NULL)); + if (*skipwhite(p) == '(') { + nesting++; + indent += 2; } } |