aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-01 14:02:48 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-15 23:07:28 -0400
commit263d62f628ee611c883b216bd9098484293d46a0 (patch)
tree76b0f65213dcc9901a4250035f682640c35f635f /src/nvim/mark.c
parent990f99658bb060ac2ac4e1cff2966eab1e96f9d9 (diff)
downloadrneovim-263d62f628ee611c883b216bd9098484293d46a0.tar.gz
rneovim-263d62f628ee611c883b216bd9098484293d46a0.tar.bz2
rneovim-263d62f628ee611c883b216bd9098484293d46a0.zip
vim-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 vim/vim#2856) https://github.com/vim/vim/commit/f86db78fed78541cefdb706e4779ce5ae9ca7820
Diffstat (limited to 'src/nvim/mark.c')
-rw-r--r--src/nvim/mark.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c
index 2f2f2a7d74..c87b612dbd 100644
--- a/src/nvim/mark.c
+++ b/src/nvim/mark.c
@@ -786,8 +786,11 @@ void ex_jumps(exarg_T *eap)
for (i = 0; i < curwin->w_jumplistlen && !got_int; ++i) {
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');
if (got_int) {