mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4384: Vim9: error message not tested, some code not tested
Problem: Vim9: error message not tested, some code not tested. Solution: Add a couple of test cases. Give an error for a command modifier without a command.
This commit is contained in:
@@ -2761,13 +2761,7 @@ compile_def_function(
|
||||
cctx.ctx_has_cmdmod = FALSE;
|
||||
if (parse_command_modifiers(&ea, &errormsg, &local_cmdmod, FALSE)
|
||||
== FAIL)
|
||||
{
|
||||
if (errormsg != NULL)
|
||||
goto erret;
|
||||
// empty line or comment
|
||||
line = (char_u *)"";
|
||||
continue;
|
||||
}
|
||||
goto erret;
|
||||
generate_cmdmods(&cctx, &local_cmdmod);
|
||||
undo_cmdmod(&local_cmdmod);
|
||||
|
||||
|
Reference in New Issue
Block a user