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/edit.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/edit.c')
-rw-r--r-- | src/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c index 739f0786e4..0363129303 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1055,8 +1055,9 @@ doESCkey: case K_IGNORE: // Something mapped to nothing break; - case K_COMMAND: // <Cmd>command<CR> - do_cmdline(NULL, getcmdkeycmd, NULL, 0); + case K_COMMAND: // <Cmd>command<CR> + case K_SCRIPT_COMMAND: // <ScriptCmd>command<CR> + do_cmdkey_command(c, 0); #ifdef FEAT_TERMINAL if (term_use_loop()) // Started a terminal that gets the input, exit Insert mode. |