From 654ff3e81d178e1c87d5c412b960997fccf00f18 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:00:23 +0100 Subject: [PATCH] Fix bug from merged branch --- novelwriter/gui/doceditor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 64fc85ca..1555e61e 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -338,9 +338,7 @@ class GuiDocEditor(QPlainTextEdit): if self._docHandle is None: self.clearEditor() else: - self.redrawText() - if not self._bigDoc: - self.highLight.rehighlight() + self._qDocument.syntaxHighlighter.rehighlight() return