mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Refuse to search history pager if no new results exist
This prevents searching further and collapsing results into one. Now I need to figure out how to get it to flash.
This commit is contained in:
@@ -4717,7 +4717,7 @@ fn fill_history_pager(
|
||||
match direction {
|
||||
SearchDirection::Forward => {
|
||||
history_pager.can_go_backwards = true;
|
||||
if index == 0 {
|
||||
if index == 0 || index <= result.final_index {
|
||||
return;
|
||||
}
|
||||
history_pager.history_index_start = result.final_index;
|
||||
|
||||
Reference in New Issue
Block a user