From d69d655ad658f48d9ee76aec55be09c163d787a5 Mon Sep 17 00:00:00 2001 From: Gabriel Acosta Date: Mon, 22 Nov 2021 03:21:42 -0300 Subject: [PATCH] fix(editor): update current line selection when change theme closes #145 --- src/pireal/gui/query_container/editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pireal/gui/query_container/editor.py b/src/pireal/gui/query_container/editor.py index cca4520..d52ed2d 100644 --- a/src/pireal/gui/query_container/editor.py +++ b/src/pireal/gui/query_container/editor.py @@ -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( @@ -433,3 +433,4 @@ def re_paint(self): self.setPalette(pal) self._highlighter = None self._highlighter = highlighter.Highlighter(self.document()) + self.__cursor_position_changed()