summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-12 14:21:06 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-12 14:21:06 +0100
commit957cf67d50516ba98716f59c9e1cb6412ec1535d (patch)
treea1f287aee01e4cbb023b2531a5a4b90e9728a8bf /src/ops.c
parentea2d407f9c144bb634c59017944e4930ed7f80a2 (diff)
downloadvim-git-957cf67d50516ba98716f59c9e1cb6412ec1535d.tar.gz
patch 8.2.1978: making a mapping work in all modes is complicatedv8.2.1978
Problem: Making a mapping work in all modes is complicated. Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282, closes 4784, based on patch by Bjorn Linse)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index 5abe151d4..cc2568307 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -3490,7 +3490,7 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank)
AppendToRedobuffLit(cap->searchbuf, -1);
AppendToRedobuff(NL_STR);
}
- else if (cap->cmdchar == ':')
+ else if (cap->cmdchar == ':' || cap->cmdchar == K_COMMAND)
{
// do_cmdline() has stored the first typed line in
// "repeat_cmdline". When several lines are typed repeating