fix(output-buffer): truncate grid height when not rendering it fully (#3750)
* fix(output-buffer): truncate grid height when not rendering it fully * also fix for cases where the changed lines are not contiguous
This commit is contained in:
parent
102af0d969
commit
23d2555543
1 changed files with 6 additions and 1 deletions
|
|
@ -941,7 +941,12 @@ impl OutputBuffer {
|
|||
}
|
||||
changed_chunks
|
||||
} else {
|
||||
let mut line_changes: Vec<_> = self.changed_lines.iter().copied().collect();
|
||||
let mut line_changes: Vec<_> = self
|
||||
.changed_lines
|
||||
.iter()
|
||||
.filter(|i| *i < &viewport_height)
|
||||
.copied()
|
||||
.collect();
|
||||
line_changes.sort_unstable();
|
||||
let mut changed_chunks = Vec::new();
|
||||
for line_index in line_changes {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue