mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
Redraw pager after it is cleared
Have the new is_repaint_needed() take care of updating the page rendering, this way we trigger the expected repaints. Fixes #7289
This commit is contained in:
parent
81d87d1c7f
commit
9000a3b2fa
2 changed files with 2 additions and 2 deletions
|
@ -580,7 +580,8 @@ bool pager_t::rendering_needs_update(const page_rendering_t &rendering) const {
|
||||||
// Common case is no pager.
|
// Common case is no pager.
|
||||||
if (this->empty() && rendering.screen_data.empty()) return false;
|
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.term_height != this->available_term_height || //
|
||||||
rendering.selected_completion_idx !=
|
rendering.selected_completion_idx !=
|
||||||
this->visual_selected_completion_index(rendering.rows, rendering.cols) || //
|
this->visual_selected_completion_index(rendering.rows, rendering.cols) || //
|
||||||
|
|
|
@ -1665,7 +1665,6 @@ void reader_data_t::accept_autosuggestion(bool full, bool single, move_word_styl
|
||||||
// Ensure we have no pager contents.
|
// Ensure we have no pager contents.
|
||||||
void reader_data_t::clear_pager() {
|
void reader_data_t::clear_pager() {
|
||||||
pager.clear();
|
pager.clear();
|
||||||
current_page_rendering = page_rendering_t();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void reader_data_t::select_completion_in_direction(selection_motion_t dir) {
|
void reader_data_t::select_completion_in_direction(selection_motion_t dir) {
|
||||||
|
|
Loading…
Reference in a new issue