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:
@@ -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 == '-';
|
||||
|
Reference in New Issue
Block a user