diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 21:14:43 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 21:14:43 +0200 |
commit | 43e969d3f98766824c18d20b84f2fab00feef683 (patch) | |
tree | 575a531eec9c96a0be9db70f952566e045d8cc3b /src/ex_docmd.c | |
parent | b8070e31736decfcdf8dd47997882cb8f5a64c9d (diff) |
patch 8.2.1286: Vim9: No error when using a type to a window variablev8.2.1286
Problem: Vim9: No error when using a type to a window variable
Solution: Recognize the syntax and give an error. (closes #6521)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index bd3de8ff8f..85747d5f4c 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3324,6 +3324,14 @@ find_ex_command( return eap->cmd; } } + + // Recognize using a type for a w:, b:, t: or g: variable: + // "w:varname: number = 123". + if (eap->cmd[1] == ':' && *p == ':') + { + eap->cmdidx = CMD_eval; + return eap->cmd; + } } #endif |