commit 4bd38d8a09044172b107be30744456012b80fb4f
Author: Kornel Benko <[email protected]>
Date:   Sat Apr 9 08:52:24 2022 +0200

    FindQuick: Handle quotes special (as in findadv)
---
 src/OutputParams.h |    1 +
 src/Paragraph.cpp  |    9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/OutputParams.h b/src/OutputParams.h
index d00ec02..65a58e5 100644
--- a/src/OutputParams.h
+++ b/src/OutputParams.h
@@ -429,6 +429,7 @@ public:
                NoSearch = 0,
                SearchWithDeleted = 1,
                SearchWithoutDeleted = 2,
+               SearchQuick = 4,
                SearchNonOutput = 8
        };
                
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index e37a123..1e9f1fb 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4610,7 +4610,14 @@ int Paragraph::find(docstring const & str, bool cs, bool 
mw,
                        if (!inset->isLetter() && !inset->isChar())
                                break;
                        odocstringstream os;
-                       inset->toString(os);
+                       if (inset->lyxCode() == lyx::QUOTE_CODE) {
+                               OutputParams op(0);
+                               op.for_searchAdv = OutputParams::SearchQuick;
+                               inset->plaintext(os, op);
+                       }
+                       else {
+                               inset->toString(os);
+                       }
                        docstring const insetstring = os.str();
                        if (!insetstring.empty()) {
                                int const insetstringsize = 
insetstring.length();
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to