diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-18 17:39:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-18 17:39:05 +0100 |
commit | 79cdf80bed3192add70882bc0aaeede91cc74300 (patch) | |
tree | 6e07da14c05b1671b046a9c2f06a25d688817138 /src/vim9compile.c | |
parent | d92cc130fbb1beacf6411ee5837545f46f9be90e (diff) | |
download | vim-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.c | 2 |
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 == '-'; |