Skip to content

Commit

Permalink
fix(editor): update current line selection when change theme
Browse files Browse the repository at this point in the history
closes #145
  • Loading branch information
centaurialpha committed Nov 22, 2021
1 parent 7dbd67a commit d69d655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pireal/gui/query_container/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def word_under_cursor(self, cursor=None):
def __cursor_position_changed(self):
self.clear_selections("current_line")

if SETTINGS.match_parenthesis:
if SETTINGS.highlight_current_line:
_selection = QTextEdit.ExtraSelection()
_selection.format.setBackground(self._highlight_line_color)
_selection.format.setProperty(
Expand Down Expand Up @@ -433,3 +433,4 @@ def re_paint(self):
self.setPalette(pal)
self._highlighter = None
self._highlighter = highlighter.Highlighter(self.document())
self.__cursor_position_changed()

0 comments on commit d69d655

Please sign in to comment.