Fix PagerAndSearch not focusing the search field

Boolean confusion

Fixes #10220
This commit is contained in:
Fabian Boehm 2024-01-16 16:39:05 +01:00
parent fdc45452b6
commit 5d3aea363e

View File

@ -2181,7 +2181,7 @@ impl ReaderData {
let sfs = self.pager.is_search_field_shown();
self.pager.set_search_field_shown(!sfs);
self.pager.set_fully_disclosed();
if self.pager.is_search_field_shown() && self.is_navigating_pager_contents() {
if self.pager.is_search_field_shown() && !self.is_navigating_pager_contents() {
self.select_completion_in_direction(SelectionMotion::South, false);
}
}