mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.4510: Vim9: shortening commands leads to confusing script
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".
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user