Skip to content

Commit

Permalink
Editor: Update line and cell selections when applying color scheme
Browse files Browse the repository at this point in the history
This allows color schemes to be applied correctly after switching them.
  • Loading branch information
ccordoba12 committed Jul 29, 2022
1 parent 852fca2 commit ed4b931
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spyder/plugins/editor/widgets/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,12 @@ def set_color_scheme(self, color_scheme):
for finfo in self.data:
finfo.editor.set_color_scheme(color_scheme)

# Update the omst important extra selections
finfo.editor.unhighlight_current_line()
finfo.editor.unhighlight_current_cell()
finfo.editor.highlight_current_line()
finfo.editor.highlight_current_cell()

def set_wrap_enabled(self, state):
# CONF.get(self.CONF_SECTION, 'wrap')
self.wrap_enabled = state
Expand Down

0 comments on commit ed4b931

Please sign in to comment.