1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

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 - Vague startup crash messages on Windows with WinPTY backend
- Deadlock on Windows when closing Alacritty using the title bar "X" button (ConPTY backend) - Deadlock on Windows when closing Alacritty using the title bar "X" button (ConPTY backend)
- Crash on `clear` when scrolled up in history - Crash on `clear` when scrolled up in history
- Entire screen getting underlined/stroke out when running `clear`
## 0.4.0 ## 0.4.0

View file

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

View file

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