Skip to content

Crash when fallback to default font size using remote control #5992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
soifou opened this issue Feb 8, 2023 · 0 comments
Closed

Crash when fallback to default font size using remote control #5992

soifou opened this issue Feb 8, 2023 · 0 comments
Labels

Comments

@soifou
Copy link

soifou commented Feb 8, 2023

Describe the bug
I have no clue why this happen but, since the release of version 0.27, I am unable to fallback to default font size using remote control kitty @. The equivalent mapping key works fine though, ie map kitty_mod+backspace remote_control set-font-size 0.

To Reproduce
Steps to reproduce the behavior:

  1. kitty -c NONE -o font_size=12 -o allow_remote_control=yes
  2. kitty @ set-font-size -- +2 // ok
  3. kitty @ set-font-size -- -1 // ok
  4. kitty @ set-font-size -- 0 // crash
Traceback (most recent call last):
  File "kitty/boss.py", line 682, in _execute_remote_command
  File "kitty/remote_control.py", line 220, in handle_cmd
  File "kitty/rc/set_font_size.py", line 46, in response_from_kitty
  File "kitty/boss.py", line 1164, in change_font_size
  File "kitty/boss.py", line 1145, in calc_new_size
TypeError: '<' not supported between instances of 'float' and 'NoneType'

Error: '<' not supported between instances of 'float' and 'NoneType'

I take this opportunity to say thank you for making kitty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant