From d29459baa61819e59961804ed258efac5733ec70 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 26 Aug 2016 22:29:11 +0200 Subject: patch 7.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. --- src/ex_cmds.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ex_cmds.c') 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() */ -- cgit v1.2.1