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 =