commit | 4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jul 26 17:56:25 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jul 26 17:56:25 2020 +0200 |
tree | 4c752cc9133d073c9f0a085f94bdd38948598d7a | |
parent | 2547aa930b59f5e2bcb70e81d5a57ed461e59b4f [diff] [blame] |
patch 8.2.1300: Vim9: optional argument type not parsed properly Problem: Vim9: optional argument type not parsed properly. Solution: Skip over the "?". (issue #6507)
diff --git a/src/evalvars.c b/src/evalvars.c index e11fdac..f409f8c 100644 --- a/src/evalvars.c +++ b/src/evalvars.c
@@ -1013,7 +1013,7 @@ if (end == arg + 2 && end[-1] == ':') --end; if (*end == ':') - end = skip_type(skipwhite(end + 1)); + end = skip_type(skipwhite(end + 1), FALSE); } return end; }