diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index fb2a07e6..9e4b8b89 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -1988,6 +1988,7 @@ class GuiDocEditSearch(QFrame): if theText is not None: self.searchBox.setText(theText) self.searchBox.setFocus() + self.searchBox.selectAll() if self.isRegEx: self._alertSearchValid(True) logger.verbose("Setting search text to '%s'" % theText)