diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-26 22:29:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-26 22:29:11 +0200 |
commit | d29459baa61819e59961804ed258efac5733ec70 (patch) | |
tree | 11154e516a0d506808a6bb51d77add58af7d6e16 /src/ex_cmds.c | |
parent | 257095760732597983bdd026e791907b7980e295 (diff) | |
download | vim-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/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 64d14aedd..9f2cd9540 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2918,6 +2918,10 @@ print_line(linenr_T lnum, int use_number, int list) { int save_silent = silent_mode; + /* apply :filter /pat/ */ + if (message_filtered(ml_get(lnum))) + return; + msg_start(); silent_mode = FALSE; info_message = TRUE; /* use mch_msg(), not mch_errmsg() */ |