vim-patch:9.1.0439: Cannot filter the history (#28958)

Problem:  Cannot filter the history
Solution: Implement :filter :history

closes: vim/vim#14835

42a5b5a6d0

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-05-24 15:45:07 +08:00
committed by GitHub
parent cd05fbef17
commit 4f431bb632
3 changed files with 57 additions and 1 deletions

View File

@@ -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);