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:
@@ -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() */
|
||||
|
Reference in New Issue
Block a user