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/insexpand.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/insexpand.c')
-rw-r--r-- | src/insexpand.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index 51177fb2c7..b7b6c0256c 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -2281,7 +2281,8 @@ ins_compl_prep(int c) // Ignore end of Select mode mapping and mouse scroll buttons. if (c == K_SELECT || c == K_MOUSEDOWN || c == K_MOUSEUP - || c == K_MOUSELEFT || c == K_MOUSERIGHT || c == K_COMMAND) + || c == K_MOUSELEFT || c == K_MOUSERIGHT + || c == K_COMMAND || c == K_SCRIPT_COMMAND) return retval; #ifdef FEAT_PROP_POPUP |