diff 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
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -3362,6 +3362,8 @@ compile_leader(cctx_T *cctx, int numeric
     while (p > start)
     {
 	--p;
+	while (VIM_ISWHITE(*p))
+	    --p;
 	if (*p == '-' || *p == '+')
 	{
 	    int	    negate = *p == '-';