diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-05 12:56:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-05 12:56:44 +0000 |
commit | 204852ae2adfdde10c656ca7f14e5b4207a69172 (patch) | |
tree | 67b62ce1a926faaeff341efa797baa3da5fd2326 /src/evalvars.c | |
parent | e1d1211799bc37c063666e97437cf4e9af4782b0 (diff) |
patch 8.2.4510: Vim9: shortening commands leads to confusing scriptv8.2.4510
Problem: Vim9: shortening commands leads to confusing script.
Solution: In Vim9 script require at least ":cont" for ":continue", "const"
instead of "cons", "break" instead of "brea", "catch" instead of
"cat", "else" instead of "el" "elseif" instead of "elsei" "endfor"
instead of "endfo" "endif" instead of "en" "endtry" instead of
"endt", "finally" instead of "fina", "throw" instead of "th",
"while" instead of "wh".
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index 56ac3daa7e..44882cae2f 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -768,11 +768,6 @@ ex_var(exarg_T *eap) emsg(_(e_cannot_declare_variable_on_command_line)); return; } - if (eap->arg > eap->cmd && !has_var) - { - emsg(_(e_must_use_var_instead_of_va)); - return; - } ex_let(eap); } |