commit | e32c3c462ce9b3163a4a4bffd985897910885d29 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jan 15 18:26:04 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jan 15 18:26:04 2022 +0000 |
tree | 92ade56bf13a5d7fe440e20f3e35e57250f19b29 | |
parent | 069613c9e8645acea3a128c15ebdbf56e2219d44 [diff] [blame] |
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping Problem: Vim9: cannot use Vim9 syntax in mapping. Solution: Add <ScriptCmd> to use the script context for a command.
diff --git a/src/terminal.c b/src/terminal.c index 281c673..f32d3ad 100644 --- a/src/terminal.c +++ b/src/terminal.c
@@ -2229,7 +2229,8 @@ 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;