[LyX/master] Do not report false find with empty string in instant search

Juergen Spitzmueller spitz at lyx.org
Thu Feb 18 11:56:54 UTC 2021


commit b6945764a408cbab2a7f3b672ffb552adbbf9cd9
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Thu Feb 18 12:59:52 2021 +0100

    Do not report false find with empty string in instant search
---
 src/lyxfind.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index a34baa3..46e1283 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -285,7 +285,7 @@ bool findOne(BufferView * bv, docstring const & searchstr,
 			bv->setCursor(bv->cursor().selectionBegin());
 			bv->clearSelection();
 		}
-		return false;
+		return true;
 	}
 
 	if (!searchAllowed(searchstr))


More information about the lyx-cvs mailing list