fix(grid): Clear sixels when clearing terminal (#3982)
* fix(grid): Clear sixels when clearing terminal No code paths existed to clear sixel images when handling csi dispatch for clear. * fix(grid): Also clear sixels on lines above
This commit is contained in:
parent
332c3e514c
commit
03e26603c8
1 changed files with 6 additions and 0 deletions
|
|
@ -2791,8 +2791,14 @@ impl Perform for Grid {
|
|||
} else if clear_type == 2 {
|
||||
self.set_scroll_region_to_viewport_size();
|
||||
self.fill_viewport(char_to_replace);
|
||||
if let Some(images_to_reap) = self.sixel_grid.clear() {
|
||||
self.sixel_grid.reap_images(images_to_reap);
|
||||
}
|
||||
} else if clear_type == 3 {
|
||||
self.clear_lines_above();
|
||||
if let Some(images_to_reap) = self.sixel_grid.clear() {
|
||||
self.sixel_grid.reap_images(images_to_reap);
|
||||
}
|
||||
}
|
||||
};
|
||||
} else if c == 'H' || c == 'f' {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue