diff --git a/nw/gui/elements/doceditor.py b/nw/gui/elements/doceditor.py index a6d76958..96966ddd 100644 --- a/nw/gui/elements/doceditor.py +++ b/nw/gui/elements/doceditor.py @@ -257,6 +257,7 @@ class GuiDocEditor(QTextEdit): self.setPlainText(theDoc) afTime = time() logger.debug("Document highlighted in %.3f milliseconds" % (1000*(afTime-bfTime))) + self.updateDocMargins() if tLine is None: self.setCursorPosition(self.nwDocument.theItem.cursorPos)