1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2020-11-18 17:39:05 +01:00
parent d92cc130fb
commit 79cdf80bed
3 changed files with 23 additions and 2 deletions

View File

@@ -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 == '-';