Merge pull request #328 from vkbo/replace_bugfix

Fixed bug in search replace
This commit is contained in:
Veronica K. Berglyd Olsen
2020-06-21 21:32:10 +02:00
committed by GitHub
+1 -1
View File
@@ -1237,10 +1237,10 @@ class GuiDocEditor(QTextEdit):
self._beginSearch() self._beginSearch()
return return
theCursor = self.textCursor()
if not theCursor.hasSelection(): if not theCursor.hasSelection():
return return
theCursor = self.textCursor()
searchFor = self.docSearch.getSearchText() searchFor = self.docSearch.getSearchText()
replWith = self.docSearch.getReplaceText() replWith = self.docSearch.getReplaceText()
selText = theCursor.selectedText() selText = theCursor.selectedText()