Revert "mux: don't include unchanged lines in the bonus lines"

This reverts commit a189bb57c14ec2245f276a077fbe13a88622c1d7;
it turns out that we do need to send those bonus lines because
the sequence number available to the logic here doesn't account
for the actual last rendered sequence number on the client, and
in a bursty update situation we can skip or otherwise omit a
line range.

refs: #1597
This commit is contained in:
Wez Furlong committed 2022-01-29 09:31:12 -07:00
1 parent 4b94214530
commit bb174811fa
1 file changed
+4 -8
@@ -99,14 +99,10 @@ impl PerPane {
let mut bonus_lines = lines
.into_iter()
.enumerate()
.filter_map(|(idx, line)| {
if line.changed_since(self.seqno) {
let stable_row = first_line + idx as StableRowIndex;
all_dirty_lines.remove(stable_row);
Some((stable_row, line))
} else {
None
}
.map(|(idx, line)| {
let stable_row = first_line + idx as StableRowIndex;
all_dirty_lines.remove(stable_row);
(stable_row, line)
})
.collect::<Vec<_>>();