From 530c4d3d1d13e423a9fba17c20010f974e6d6630 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Fri, 8 Nov 2024 18:44:26 +0100 Subject: [PATCH] fix(output-buffer): truncate grid height when not rendering it fully --- zellij-server/src/output/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zellij-server/src/output/mod.rs b/zellij-server/src/output/mod.rs index 7ad7a38bc..4fcebea35 100644 --- a/zellij-server/src/output/mod.rs +++ b/zellij-server/src/output/mod.rs @@ -943,6 +943,7 @@ impl OutputBuffer { } else { let mut line_changes: Vec<_> = self.changed_lines.iter().copied().collect(); line_changes.sort_unstable(); + line_changes.truncate(viewport_height); let mut changed_chunks = Vec::new(); for line_index in line_changes { let terminal_characters =