diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-24 15:45:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 15:45:07 +0800 |
commit | 4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101 (patch) | |
tree | e0193fffc261bcb1ca85c2140546e7d50469314d /src | |
parent | cd05fbef170b29083973fd11170d25225feb8bed (diff) | |
download | rneovim-4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101.tar.gz rneovim-4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101.tar.bz2 rneovim-4f431bb632b5285fc0f0d5e6ac0ff21b7c6ef101.zip |
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 <cb@256bit.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/cmdhist.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |