1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

term: reset to single width line when clearing a line

Previously overlooked because we didn't render or otherwise
change behavior: after running vttest and running ls, some
lines still had double width/height set.

This ensures that we remove that attribute when clearing
the screen.
This commit is contained in:
Wez Furlong 2022-02-06 07:10:31 -07:00
parent 1b63b4b7c9
commit f89f2b5248

View File

@ -1887,6 +1887,8 @@ impl TerminalState {
let screen = self.screen_mut();
for y in row_range.clone() {
screen.clear_line(y, col_range.clone(), &pen, seqno, bidi_mode);
let line_idx = screen.phys_row(y);
screen.line_mut(line_idx).set_single_width(seqno);
}
}
}