mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-29 04:15:06 +03:00
fix(output-buffer): truncate grid height when not rendering it fully
This commit is contained in:
parent
102af0d969
commit
530c4d3d1d
@ -943,6 +943,7 @@ impl OutputBuffer {
|
|||||||
} else {
|
} else {
|
||||||
let mut line_changes: Vec<_> = self.changed_lines.iter().copied().collect();
|
let mut line_changes: Vec<_> = self.changed_lines.iter().copied().collect();
|
||||||
line_changes.sort_unstable();
|
line_changes.sort_unstable();
|
||||||
|
line_changes.truncate(viewport_height);
|
||||||
let mut changed_chunks = Vec::new();
|
let mut changed_chunks = Vec::new();
|
||||||
for line_index in line_changes {
|
for line_index in line_changes {
|
||||||
let terminal_characters =
|
let terminal_characters =
|
||||||
|
Loading…
Reference in New Issue
Block a user