From 6e94dae9cd55a37c5c15cc1888f2fec821520b72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Jan 2019 10:38:09 +0530 Subject: [PATCH] Handle cursor_text_color that is already a Color when patching --- kitty/boss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index 1dd236aac..b68d44683 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -960,7 +960,9 @@ class Boss: if hasattr(self.opts, k): setattr(self.opts, k, color_from_int(v)) if cursor_text_color is not False: - self.opts.cursor_text_color = color_from_int(cursor_text_color) + if isinstance(cursor_text_color, int): + cursor_text_color = color_from_int(cursor_text_color) + self.opts.cursor_text_color = cursor_text_color for tm in self.all_tab_managers: tm.tab_bar.patch_colors(spec) patch_global_colors(spec, configured)