From 4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 24 May 2024 15:45:07 +0800 Subject: vim-patch:9.1.0439: Cannot filter the history (#28958) Problem: Cannot filter the history Solution: Implement :filter :history closes: vim/vim#14835 https://github.com/vim/vim/commit/42a5b5a6d0d05255b9c464abe71f29c7677b5833 Co-authored-by: Christian Brabandt --- src/nvim/cmdhist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/cmdhist.c b/src/nvim/cmdhist.c index eb1658aa1f..983ab8b59b 100644 --- a/src/nvim/cmdhist.c +++ b/src/nvim/cmdhist.c @@ -662,7 +662,8 @@ void ex_history(exarg_T *eap) 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'); snprintf(IObuff, IOSIZE, "%c%6d ", i == idx ? '>' : ' ', hist[i].hisnum); -- cgit