0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00

patch 8.1.0495: :filter only supports some commands

Problem:    :filter only supports some commands.
Solution:   Add :filter support for more commands. (Marcin Szamotulski,
            closes #2856)
This commit is contained in:
Bram Moolenaar
2018-10-25 13:31:37 +02:00
parent babfcf54ae
commit f86db78fed
8 changed files with 76 additions and 4 deletions

View File

@@ -901,7 +901,9 @@ ex_jumps(exarg_T *eap UNUSED)
if (curwin->w_jumplist[i].fmark.mark.lnum != 0)
{
name = fm_getname(&curwin->w_jumplist[i].fmark, 16);
if (name == NULL) /* file name not available */
// apply :filter /pat/ or file name not available
if (name == NULL || message_filtered(name))
continue;
msg_putchar('\n');