diff --git a/src/pager.cpp b/src/pager.cpp index 37c833e4a..4357462ab 100644 --- a/src/pager.cpp +++ b/src/pager.cpp @@ -580,7 +580,8 @@ bool pager_t::rendering_needs_update(const page_rendering_t &rendering) const { // Common case is no pager. if (this->empty() && rendering.screen_data.empty()) return false; - return rendering.term_width != this->available_term_width || // + return this->empty() && !rendering.screen_data.empty() || // Do update after clear(). + rendering.term_width != this->available_term_width || // rendering.term_height != this->available_term_height || // rendering.selected_completion_idx != this->visual_selected_completion_index(rendering.rows, rendering.cols) || // diff --git a/src/reader.cpp b/src/reader.cpp index 8a3c9ac2c..d2c5a5152 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1665,7 +1665,6 @@ void reader_data_t::accept_autosuggestion(bool full, bool single, move_word_styl // Ensure we have no pager contents. void reader_data_t::clear_pager() { pager.clear(); - current_page_rendering = page_rendering_t(); } void reader_data_t::select_completion_in_direction(selection_motion_t dir) {