aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Hahn <nicolas@stonespring.org>2019-04-19 09:34:38 -0400
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-04-19 13:34:38 +0000
commita47d716daace7c197392854754406a06454ec380 (patch)
tree720a1fc3bdd96c25fbb8b95a2e1c7997226607eb
parent6716c81c08c10477d2370d7e1ca56e31348a7fa3 (diff)
downloadalacritty-a47d716daace7c197392854754406a06454ec380.tar.gz
alacritty-a47d716daace7c197392854754406a06454ec380.zip
Update pty size when font size changed
-rw-r--r--src/display.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs
index 25c4855a..9e902b94 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -338,6 +338,9 @@ impl Display {
pty_resize_handle: &mut dyn OnResize,
processor_resize_handle: &mut dyn OnResize,
) {
+ let previous_cols = self.size_info.cols();
+ let previous_lines = self.size_info.lines();
+
// Resize events new_size and are handled outside the poll_events
// iterator. This has the effect of coalescing multiple resize
// events into one.
@@ -388,8 +391,6 @@ impl Display {
let height = psize.height as f32;
let cell_width = self.size_info.cell_width;
let cell_height = self.size_info.cell_height;
- let previous_cols = self.size_info.cols();
- let previous_lines = self.size_info.lines();
self.size_info.width = width;
self.size_info.height = height;