commit b6945764a408cbab2a7f3b672ffb552adbbf9cd9
Author: Juergen Spitzmueller <sp...@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))
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to