summaryrefslogtreecommitdiffstats
path: root/src/evalvars.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-30 21:12:34 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-30 21:12:34 +0000
commitce93d162da8de2419c15b63286e2f72a8fe3bf2d (patch)
treec71709142faa5d59491146cd89733016bc93217a /src/evalvars.c
parentb8bebd0cd78679162228ee08265c9a5b3a409e1c (diff)
patch 9.0.1266: error for space before ": type" is inconsistentv9.0.1266
Problem: Error for space before ": type" is inconsistent. Solution: Give E1059 in more places. (closes #11868)
Diffstat (limited to 'src/evalvars.c')
-rw-r--r--src/evalvars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 68df1cb52e..066543669b 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1363,8 +1363,8 @@ skip_var_one(char_u *arg, int include_type)
if (include_type && vim9)
{
- if (*end == ':')
- end = skip_type(skipwhite(end + 1), FALSE);
+ if (*skipwhite(end) == ':')
+ end = skip_type(skipwhite(skipwhite(end) + 1), FALSE);
}
return end;
}