Skip to content

Commit

Permalink
fix(compatibility): properly clear pane before switching to alternate…
Browse files Browse the repository at this point in the history
… screen (#1120)
  • Loading branch information
imsnif authored Feb 25, 2022
1 parent e4829ee commit 3bbae77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zellij-server/src/panes/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3bbae77

Please sign in to comment.