0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2016-08-26 22:29:11 +02:00
parent 2570957607
commit d29459baa6
8 changed files with 68 additions and 6 deletions

View File

@@ -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() */