fix(output-buffer): truncate grid height when not rendering it fully

This commit is contained in:
Aram Drevekenin 2024-11-08 18:44:26 +01:00
parent 102af0d969
commit 530c4d3d1d

View File

@ -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 =