We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e4acfb4 + 0afa15f commit 6a441b1Copy full SHA for 6a441b1
novelwriter/gui/doceditor.py
@@ -301,8 +301,6 @@ def updateSyntaxColours(self) -> None:
301
self.docHeader.matchColours()
302
self.docFooter.matchColours()
303
304
- self._qDocument.syntaxHighlighter.initHighlighter()
305
-
306
return
307
308
def initEditor(self) -> None:
@@ -336,6 +334,9 @@ def initEditor(self) -> None:
336
334
font.setPointSize(CONFIG.textSize)
337
335
self._qDocument.setDefaultFont(font)
338
+ # Update highlighter settings
+ self._qDocument.syntaxHighlighter.initHighlighter()
339
+
340
# Set default text margins
341
# Due to cursor visibility, a part of the margin must be
342
# allocated to the document itself. See issue #1112.
0 commit comments