diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-26 17:56:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-26 17:56:25 +0200 |
commit | 4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3 (patch) | |
tree | 4c752cc9133d073c9f0a085f94bdd38948598d7a /src/evalvars.c | |
parent | 2547aa930b59f5e2bcb70e81d5a57ed461e59b4f (diff) |
patch 8.2.1300: Vim9: optional argument type not parsed properlyv8.2.1300
Problem: Vim9: optional argument type not parsed properly.
Solution: Skip over the "?". (issue #6507)
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index e11fdac41f..f409f8c006 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -1013,7 +1013,7 @@ skip_var_one(char_u *arg, int include_type) if (end == arg + 2 && end[-1] == ':') --end; if (*end == ':') - end = skip_type(skipwhite(end + 1)); + end = skip_type(skipwhite(end + 1), FALSE); } return end; } |