Fix a regression in 0.17 that caused kitty @ set-colors to require setting cursor_text_color

Fixes #2470
This commit is contained in:
Kovid Goyal 2020-03-24 19:29:25 +05:30
parent bf7c26d357
commit c2957e7f12
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Fix a regression in 0.17 that caused incorrect variants to be
automatically selected for some fonts (:iss:`2462`)
- Fix a regression in 0.17 that caused kitty @ set-colors to require setting
cursor_text_color (:iss:`2470`)
0.17.0 [2020-03-24]
--------------------

View File

@ -69,7 +69,7 @@ this option, any color arguments are ignored and --configured and --all are impl
else:
with open(os.path.expanduser(spec), encoding='utf-8', errors='replace') as f:
colors.update(parse_config(f))
ctc = colors.pop('cursor_text_color')
ctc = colors.pop('cursor_text_color', None)
if isinstance(ctc, Color):
cursor_text_color = color_as_int(ctc)
final_colors = {k: color_as_int(v) for k, v in colors.items() if isinstance(v, Color)}