1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

fix color of erased characters

This was responsible for eg: dialog rendering a black (or whatever
the default background color was) strip behind the text in an
invocation like:

`dialog --yesno hello 0 0`

Rather than render a default cell, render a blank cell using the
current pen.
This commit is contained in:
Wez Furlong 2019-03-22 21:45:51 -07:00
parent 54324121f2
commit cbc1462bb4

View File

@ -1582,8 +1582,8 @@ impl TerminalState {
let x = self.cursor.x;
let limit = (x + n as usize).min(self.screen().physical_cols);
{
let blank = Cell::new(' ', self.pen.clone_sgr_only());
let screen = self.screen_mut();
let blank = Cell::default();
for x in x..limit as usize {
screen.set_cell(x, y, &blank);
}