commit | 79cdf80bed3192add70882bc0aaeede91cc74300 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Nov 18 17:39:05 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Nov 18 17:39:05 2020 +0100 |
tree | 6e07da14c05b1671b046a9c2f06a25d688817138 | |
parent | d92cc130fbb1beacf6411ee5837545f46f9be90e [diff] [blame] |
patch 8.2.2013: Vim9: not skipping white space after unary minus Problem: Vim9: not skipping white space after unary minus. Solution: Skip whitespace. (closes #7324)
diff --git a/src/vim9compile.c b/src/vim9compile.c index c5d92aa..2c52280 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -3362,6 +3362,8 @@ while (p > start) { --p; + while (VIM_ISWHITE(*p)) + --p; if (*p == '-' || *p == '+') { int negate = *p == '-';