mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Fix a regression that broke the legacy increase/decrease_font_size actions
This commit is contained in:
parent
f78d05a57f
commit
adb8a4676c
1 changed files with 4 additions and 2 deletions
|
|
@ -314,10 +314,12 @@ class Boss:
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue