summaryrefslogtreecommitdiff
path: root/src/getchar.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-26 22:29:11 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-26 22:29:11 +0200
commitd29459baa61819e59961804ed258efac5733ec70 (patch)
tree11154e516a0d506808a6bb51d77add58af7d6e16 /src/getchar.c
parent257095760732597983bdd026e791907b7980e295 (diff)
downloadvim-git-d29459baa61819e59961804ed258efac5733ec70.tar.gz
patch 7.4.2263v7.4.2263
Problem: :filter does not work for many commands. Can only get matching messages. Solution: Make :filter work for :command, :map, :list, :number and :print. Make ":filter!" show non-matching lines.
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 52b185377..9fcc62b08 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -1919,7 +1919,7 @@ vungetc(int c)
* This may do a blocking wait if "advance" is TRUE.
*
* if "advance" is TRUE (vgetc()):
- * really get the character.
+ * Really get the character.
* KeyTyped is set to TRUE in the case the user typed the key.
* KeyStuffed is TRUE if the character comes from the stuff buffer.
* if "advance" is FALSE (vpeekc()):
@@ -3987,6 +3987,9 @@ showmap(
int len = 1;
char_u *mapchars;
+ if (message_filtered(mp->m_keys) && message_filtered(mp->m_str))
+ return;
+
if (msg_didout || msg_silent != 0)
{
msg_putchar('\n');