diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-05 16:53:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-05 16:53:21 +0100 |
commit | ddf7dba96e05a41c7a228b153146237e0a21b146 (patch) | |
tree | b5865b60ab795b541a902b2be3c39c0df353ca37 /src/keymap.h | |
parent | b1f471ee20b0fa783ecd6e29aa69067e6c821376 (diff) |
patch 9.0.0387: repeat <ScriptCmd> mapping doesn't use right script contextv9.0.0387
Problem: repeating a <ScriptCmd> mapping does not use the right script
context.
Solution: When using a mapping put <SID>{sid}; in the redo buffer.
(closes #11049)
Diffstat (limited to 'src/keymap.h')
-rw-r--r-- | src/keymap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keymap.h b/src/keymap.h index 6350772c72..910df7d025 100644 --- a/src/keymap.h +++ b/src/keymap.h @@ -277,6 +277,7 @@ enum key_extra , KE_COMMAND = 103 // <Cmd> special key , KE_SCRIPT_COMMAND = 104 // <ScriptCmd> special key , KE_S_BS = 105 // shift + <BS> + , KE_SID = 106 // <SID> special key, followed by {nr}; }; /* @@ -483,6 +484,7 @@ enum key_extra #define K_COMMAND TERMCAP2KEY(KS_EXTRA, KE_COMMAND) #define K_SCRIPT_COMMAND TERMCAP2KEY(KS_EXTRA, KE_SCRIPT_COMMAND) +#define K_SID TERMCAP2KEY(KS_EXTRA, KE_SID) // Bits for modifier mask // 0x01 cannot be used, because the modifier must be 0x02 or higher |