Revert "Fix "commandline --paging-mode" false negative when there is no room for pager"

This reverts commit 1edcd8ab29.

The commit broke hitting <TAB> to show the pager, followed by
down-or-search.
This commit is contained in:
Aaron Gyes
2022-07-30 18:15:10 -07:00
parent 88d1317eaa
commit 7b18a70724

View File

@@ -2913,7 +2913,7 @@ void reader_data_t::update_commandline_state() const {
snapshot->cursor_pos = this->command_line.position();
snapshot->history = this->history;
snapshot->selection = this->get_selection();
snapshot->pager_mode = this->is_navigating_pager_contents();
snapshot->pager_mode = !this->current_page_rendering.screen_data.empty();
snapshot->pager_fully_disclosed = this->current_page_rendering.remaining_to_disclose == 0;
snapshot->search_mode = this->history_search.active();
snapshot->initialized = true;