From 6b9c81e8c48c87af18d6381d3981c6714f571497 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Thu, 11 Apr 2024 00:23:38 +0200 Subject: [PATCH] Trigger search update on document save --- novelwriter/gui/doceditor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/novelwriter/gui/doceditor.py b/novelwriter/gui/doceditor.py index 1f56a2b9..08a963e7 100644 --- a/novelwriter/gui/doceditor.py +++ b/novelwriter/gui/doceditor.py @@ -497,6 +497,7 @@ class GuiDocEditor(QPlainTextEdit): return False self.setDocumentChanged(False) + self.docTextChanged.emit(self._docHandle, self._lastEdit) oldHeader = self._nwItem.mainHeading oldCount = SHARED.project.index.getHandleHeaderCount(tHandle)