summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-11-24 17:14:06 +0400
committerGitHub <noreply@github.com>2023-11-24 17:14:06 +0400
commit1152aea66a4bf254973712da03489f781c3e15de (patch)
tree3a43dfc068de277536236061b5b223c33e534d0b
parent0b4184130597079c02a6a99e0da77dce9e82a914 (diff)
downloadalacritty-1152aea66a4bf254973712da03489f781c3e15de.tar.gz
alacritty-1152aea66a4bf254973712da03489f781c3e15de.zip
Damage entire window on font size change
Font size could change without changing the cell dimensions, like becoming slightly higher/wider. Fixes: 40160c5d (Damage only terminal inside `alacritty_terminal`)
-rw-r--r--alacritty/src/display/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/alacritty/src/display/mod.rs b/alacritty/src/display/mod.rs
index 28c91cdb..ef25f735 100644
--- a/alacritty/src/display/mod.rs
+++ b/alacritty/src/display/mod.rs
@@ -617,6 +617,10 @@ impl Display {
cell_height = cell_dimensions.1;
info!("Cell size: {} x {}", cell_width, cell_height);
+
+ // Mark entire terminal as damaged since glyph size could change without cell size
+ // changes.
+ self.damage_tracker.frame().mark_fully_damaged();
}
let (mut width, mut height) = (self.size_info.width(), self.size_info.height());