diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-15 18:26:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-15 18:26:04 +0000 |
commit | e32c3c462ce9b3163a4a4bffd985897910885d29 (patch) | |
tree | 92ade56bf13a5d7fe440e20f3e35e57250f19b29 /src/terminal.c | |
parent | 069613c9e8645acea3a128c15ebdbf56e2219d44 (diff) |
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mappingv8.2.4099
Problem: Vim9: cannot use Vim9 syntax in mapping.
Solution: Add <ScriptCmd> to use the script context for a command.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index 281c673e8b..f32d3adea3 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -2229,7 +2229,8 @@ send_keys_to_term(term_T *term, int c, int modmask, int typed) break; case K_COMMAND: - return do_cmdline(NULL, getcmdkeycmd, NULL, 0); + case K_SCRIPT_COMMAND: + return do_cmdkey_command(c, 0); } if (typed) mouse_was_outside = FALSE; |