Handle cursor_text_color that is already a Color when patching
This commit is contained in:
parent
d2431783f1
commit
6e94dae9cd
1 changed files with 3 additions and 1 deletions
|
|
@ -960,7 +960,9 @@ def patch_colors(self, spec, cursor_text_color, configured=False):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue