summaryrefslogtreecommitdiffstats
path: root/src/cmdhist.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-05-24 07:39:34 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-24 07:39:34 +0200
commit42a5b5a6d0d05255b9c464abe71f29c7677b5833 (patch)
treebc505f4026a623ad3dc794d95d54d8e390c7d9d8 /src/cmdhist.c
parent3074137542961ce7b3b65c14ebde75f13f5e6147 (diff)
patch 9.1.0439: Cannot filter the historyv9.1.0439
Problem: Cannot filter the history Solution: Implement :filter :history closes: #14835 Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/cmdhist.c')
-rw-r--r--src/cmdhist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmdhist.c b/src/cmdhist.c
index 7cdcee6b86..684c08e704 100644
--- a/src/cmdhist.c
+++ b/src/cmdhist.c
@@ -767,7 +767,8 @@ ex_history(exarg_T *eap)
if (i == hislen)
i = 0;
if (hist[i].hisstr != NULL
- && hist[i].hisnum >= j && hist[i].hisnum <= k)
+ && hist[i].hisnum >= j && hist[i].hisnum <= k
+ && !message_filtered(hist[i].hisstr))
{
msg_putchar('\n');
sprintf((char *)IObuff, "%c%6d ", i == idx ? '>' : ' ',