Mercurial > vim
comparison src/vim9compile.c @ 22932:87b62395a4d1 v8.2.2013
patch 8.2.2013: Vim9: not skipping white space after unary minus
Commit: https://github.com/vim/vim/commit/79cdf80bed3192add70882bc0aaeede91cc74300
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 18 17:39:05 2020 +0100
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 https://github.com/vim/vim/issues/7324)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 18 Nov 2020 17:45:03 +0100 |
parents | edfbb06cd0ee |
children | 00b0275ffe7f |
comparison
equal
deleted
inserted
replaced
22931:7b03a3108d09 | 22932:87b62395a4d1 |
---|---|
3360 | 3360 |
3361 // this works from end to start | 3361 // this works from end to start |
3362 while (p > start) | 3362 while (p > start) |
3363 { | 3363 { |
3364 --p; | 3364 --p; |
3365 while (VIM_ISWHITE(*p)) | |
3366 --p; | |
3365 if (*p == '-' || *p == '+') | 3367 if (*p == '-' || *p == '+') |
3366 { | 3368 { |
3367 int negate = *p == '-'; | 3369 int negate = *p == '-'; |
3368 isn_T *isn; | 3370 isn_T *isn; |
3369 | 3371 |