mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
correctly invalidate line shape data when fallback fonts load async
Ensure that the cache key changes when the shape generation changes
This commit is contained in:
parent
c4d19afa75
commit
0a3998887f
@ -196,6 +196,7 @@ pub struct LineToElementParams<'a> {
|
||||
pub struct LineToEleShapeCacheKey {
|
||||
pub shape_hash: [u8; 16],
|
||||
pub composing: Option<(usize, String)>,
|
||||
pub shape_generation: usize,
|
||||
}
|
||||
|
||||
pub struct LineToElementShapeItem {
|
||||
@ -1752,6 +1753,7 @@ impl super::TermWindow {
|
||||
|
||||
let shape_key = LineToEleShapeCacheKey {
|
||||
shape_hash,
|
||||
shape_generation: quad_key.shape_generation,
|
||||
composing: if self.cursor.y == stable_row {
|
||||
if let DeadKeyStatus::Composing(composing) =
|
||||
&self.term_window.dead_key_status
|
||||
|
Loading…
Reference in New Issue
Block a user