diff src/evalvars.c @ 21500:574517d682cf v8.2.1300

patch 8.2.1300: Vim9: optional argument type not parsed properly Commit: https://github.com/vim/vim/commit/4fc224ca1cf2a8991c5ea17682a742c6ad5ad0f3 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 26 17:56:25 2020 +0200 patch 8.2.1300: Vim9: optional argument type not parsed properly Problem: Vim9: optional argument type not parsed properly. Solution: Skip over the "?". (issue https://github.com/vim/vim/issues/6507)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Jul 2020 18:00:04 +0200
parents 4dfd00f481fb
children 4e679db1c404
line wrap: on
line diff
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -1013,7 +1013,7 @@ skip_var_one(char_u *arg, int include_ty
 	if (end == arg + 2 && end[-1] == ':')
 	    --end;
 	if (*end == ':')
-	    end = skip_type(skipwhite(end + 1));
+	    end = skip_type(skipwhite(end + 1), FALSE);
     }
     return end;
 }