mirror of
https://github.com/alacritty/alacritty.git
synced 2025-02-10 15:46:10 -05:00
Fix screen reset not clearing cell flags
This commit is contained in:
parent
44037fa42a
commit
9da0c042d4
7 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[undeadleech@undeadlap alacritty]$ echo -e "\e[4mUNDERLINED"
|
||||
[4mUNDERLINED
|
||||
[undeadleech@undeadlap alacritty]$ clear
|
||||
[3J[H[2J[undeadleech@undeadlap alacritty]$ exit
|
||||
exit
|
1
alacritty_terminal/tests/ref/clear_underline/config.json
Normal file
1
alacritty_terminal/tests/ref/clear_underline/config.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"history_size":0}
|
1
alacritty_terminal/tests/ref/clear_underline/grid.json
Normal file
1
alacritty_terminal/tests/ref/clear_underline/grid.json
Normal file
File diff suppressed because one or more lines are too long
1
alacritty_terminal/tests/ref/clear_underline/size.json
Normal file
1
alacritty_terminal/tests/ref/clear_underline/size.json
Normal 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}
|
Loading…
Add table
Reference in a new issue