mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
kitty should not quit if an invalid set_colors mapping is configured
This commit is contained in:
parent
5f91084968
commit
a099d2364d
1 changed files with 5 additions and 1 deletions
|
|
@ -1805,7 +1805,11 @@ class Boss:
|
|||
)
|
||||
from kitty.remote_control import parse_rc_args
|
||||
c = command_for_name('set_colors')
|
||||
opts, items = parse_subcommand_cli(c, ['set-colors'] + list(args))
|
||||
try:
|
||||
opts, items = parse_subcommand_cli(c, ['set-colors'] + list(args))
|
||||
except (Exception, SystemExit) as err:
|
||||
self.show_error('Invalid set_colors mapping', str(err))
|
||||
return
|
||||
payload = c.message_to_kitty(parse_rc_args([])[0], opts, items)
|
||||
c.response_from_kitty(self, self.active_window, PayloadGetter(c, payload if isinstance(payload, dict) else {}))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue