commit | 957cf67d50516ba98716f59c9e1cb6412ec1535d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Nov 12 14:21:06 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Nov 12 14:21:06 2020 +0100 |
tree | a1f287aee01e4cbb023b2531a5a4b90e9728a8bf | |
parent | ea2d407f9c144bb634c59017944e4930ed7f80a2 [diff] [blame] |
patch 8.2.1978: making a mapping work in all modes is complicated 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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 627dae7..dbaf218 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -8148,6 +8148,9 @@ restart_edit = 'i'; curwin->w_curswant = 0; // avoid MAXCOL } + + if (VIsual_active) + showmode(); } /*