summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-18 17:39:05 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-18 17:39:05 +0100
commit79cdf80bed3192add70882bc0aaeede91cc74300 (patch)
tree6e07da14c05b1671b046a9c2f06a25d688817138 /src/vim9compile.c
parentd92cc130fbb1beacf6411ee5837545f46f9be90e (diff)
downloadvim-git-79cdf80bed3192add70882bc0aaeede91cc74300.tar.gz
patch 8.2.2013: Vim9: not skipping white space after unary minusv8.2.2013
Problem: Vim9: not skipping white space after unary minus. Solution: Skip whitespace. (closes #7324)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index c5d92aa1b..2c522809d 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -3362,6 +3362,8 @@ compile_leader(cctx_T *cctx, int numeric_only, char_u *start, char_u **end)
while (p > start)
{
--p;
+ while (VIM_ISWHITE(*p))
+ --p;
if (*p == '-' || *p == '+')
{
int negate = *p == '-';