mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4314: test fails where lines are skipped
Problem: Test fails where lines are skipped. Solution: Only give an error when not skipping commands.
This commit is contained in:
@@ -3139,8 +3139,13 @@ compile_def_function(
|
||||
break;
|
||||
|
||||
case CMD_vim9script:
|
||||
emsg(_(e_vim9script_can_only_be_used_in_script));
|
||||
goto erret;
|
||||
if (cctx.ctx_skip != SKIP_YES)
|
||||
{
|
||||
emsg(_(e_vim9script_can_only_be_used_in_script));
|
||||
goto erret;
|
||||
}
|
||||
line = (char_u *)"";
|
||||
break;
|
||||
|
||||
case CMD_global:
|
||||
if (check_global_and_subst(ea.cmd, p) == FAIL)
|
||||
|
Reference in New Issue
Block a user