This commit is contained in:
Kovid Goyal 2017-05-17 09:29:57 +05:30
parent b58ecde740
commit 9fdadfabcc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -304,16 +304,7 @@ class CharGrid:
if val is None:
continue
dirtied = True
if which is DynamicColor.default_fg:
self.screen.default_fg = val
elif which is DynamicColor.default_bg:
self.screen.default_bg = val
elif which is DynamicColor.cursor_color:
self.screen.cursor_color = val
elif which is DynamicColor.highlight_fg:
self.screen.highlight_fg = val
elif which is DynamicColor.highlight_bg:
self.screen.highlight_bg = val
setattr(self.screen, which.name, val)
if dirtied:
self.screen.mark_as_dirty()