diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-29 21:29:44 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-04-29 23:48:27 -0400 |
commit | f219657453271f19519148d76536879bec044534 (patch) | |
tree | e3dc982477e44401ae1dfae409896ca914a5283a /src/nvim/ex_cmds.c | |
parent | ab50c1fdb73aa58f620491d50c6fcd222d37cb9d (diff) | |
download | rneovim-f219657453271f19519148d76536879bec044534.tar.gz rneovim-f219657453271f19519148d76536879bec044534.tar.bz2 rneovim-f219657453271f19519148d76536879bec044534.zip |
vim-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.
https://github.com/vim/vim/commit/d29459baa61819e59961804ed258efac5733ec70
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 772527532e..1b2eb774c9 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1490,6 +1490,11 @@ void 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() */ |