fix(compatibility): properly clear pane before switching to alternate screen (#1120)

This commit is contained in:
Aram Drevekenin 2022-02-25 15:01:08 +01:00 committed by GitHub
parent e4829ee6ad
commit 3bbae77921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1802,6 +1802,7 @@ impl Perform for Grid {
Some((current_lines_above, current_viewport, current_cursor));
self.clear_viewport_before_rendering = true;
self.scrollback_buffer_lines = self.recalculate_scrollback_buffer_count();
self.output_buffer.update_all_lines(); // make sure the screen gets cleared in the next render
}
Some(1) => {
self.cursor_key_mode = true;