From adb8a4676cfe9a7842149dbcdd4ef29715a2d492 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Jun 2018 07:42:12 +0530 Subject: [PATCH] Fix a regression that broke the legacy increase/decrease_font_size actions --- kitty/boss.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 59b35e4c6..abd18e86c 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -314,10 +314,12 @@ def on_window_resize(self, os_window_id, w, h, dpi_changed): tm.resize() def increase_font_size(self): # legacy - self.set_font_size(min(self.opts.font_size * 5, self.current_font_size + 2.0)) + cfs = global_font_size() + self.set_font_size(min(self.opts.font_size * 5, cfs + 2.0)) def decrease_font_size(self): # legacy - self.set_font_size(self.current_font_size - self.opts.font_size_delta) + cfs = global_font_size() + self.set_font_size(cfs - self.opts.font_size_delta) def restore_font_size(self): # legacy self.set_font_size(self.opts.font_size)