From c2957e7f12c39c8f7f963dae4e04daa5b60c634c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Mar 2020 19:29:25 +0530 Subject: [PATCH] Fix a regression in 0.17 that caused kitty @ set-colors to require setting cursor_text_color Fixes #2470 --- docs/changelog.rst | 3 +++ kitty/rc/set_colors.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index c683c99ad..17fa9a6e8 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -15,6 +15,9 @@ To update |kitty|, :doc:`follow the instructions `. - 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] -------------------- diff --git a/kitty/rc/set_colors.py b/kitty/rc/set_colors.py index be6781d14..1a3c907d0 100644 --- a/kitty/rc/set_colors.py +++ b/kitty/rc/set_colors.py @@ -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)}