mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1178: Vim9: filter function recognized as command modifier
Problem: Vim9: filter function recognized as command modifier, leading to a crash. Solution: Clear cmdmod after freeing items. Do not recognize a command modifier followed by non-white space. (closes #6434)
This commit is contained in:
@@ -6963,6 +6963,7 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
|
||||
}
|
||||
// TODO: use modifiers in the command
|
||||
undo_cmdmod(&ea, save_msg_scroll);
|
||||
CLEAR_FIELD(cmdmod);
|
||||
|
||||
// Skip ":call" to get to the function name.
|
||||
if (checkforcmd(&ea.cmd, "call", 3))
|
||||
|
Reference in New Issue
Block a user