Fix screen reset not clearing cell flags

This commit is contained in:
Christian Duerr 2019-12-24 20:51:06 +00:00 committed by GitHub
parent 44037fa42a
commit 9da0c042d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Vague startup crash messages on Windows with WinPTY backend
- Deadlock on Windows when closing Alacritty using the title bar "X" button (ConPTY backend)
- Crash on `clear` when scrolled up in history
- Entire screen getting underlined/stroke out when running `clear`
## 0.4.0

View File

@ -1785,6 +1785,7 @@ impl<T: EventListener> ansi::Handler for Term<T> {
if self.mode.contains(TermMode::ALT_SCREEN) {
self.grid.region_mut(..).each(|c| c.reset(&template));
} else {
let template = Cell { bg: template.bg, ..Cell::default() };
self.grid.clear_viewport(&template);
}
},

View File

@ -62,6 +62,7 @@ ref_tests! {
insert_blank_reset
erase_chars_reset
scroll_up_reset
clear_underline
}
fn read_u8<P>(path: P) -> Vec<u8>

View File

@ -0,0 +1,5 @@
[undeadleech@undeadlap alacritty]$ echo -e "\e[4mUNDERLINED"
UNDERLINED
[undeadleech@undeadlap alacritty]$ clear
[undeadleech@undeadlap alacritty]$ exit
exit

View File

@ -0,0 +1 @@
{"history_size":0}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"width":662.0,"height":708.0,"cell_width":10.0,"cell_height":22.0,"padding_x":0.0,"padding_y":0.0,"dpr":1.0833333333333333}