alacritty

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a47d716daace7c197392854754406a06454ec380
parent 6716c81c08c10477d2370d7e1ca56e31348a7fa3
Author: Nicolas Hahn <nicolas@stonespring.org>
Date:   Fri, 19 Apr 2019 09:34:38 -0400

Update pty size when font size changed


Diffstat:
Msrc/display.rs | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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;