]> git.lyx.org Git - lyx.git/commitdiff
FindAdv: Handle neg-spaces like normal space if searching without format
authorKornel Benko <kornel@lyx.org>
Sun, 31 Dec 2023 13:27:40 +0000 (14:27 +0100)
committerKornel Benko <kornel@lyx.org>
Tue, 2 Apr 2024 07:22:53 +0000 (09:22 +0200)
src/insets/InsetSpace.cpp
src/insets/InsetSpace.h

index 53fda518dad65fd28bfe89f998ea21e1a0b5904f..8ad6f7f5e081063ac5de707847c8a75f7af2cb15 100644 (file)
@@ -773,7 +773,12 @@ int InsetSpace::plaintext(odocstringstream & os,
        case InsetSpaceParams::NEGTHIN:
        case InsetSpaceParams::NEGMEDIUM:
        case InsetSpaceParams::NEGTHICK:
-               return 0;
+               if (rp.find_effective()) {
+                       os << ' ';
+                       return 1;
+               }
+               else
+                       return 0;
        default:
                os << ' ';
                return 1;
index 04edaed2c4f3312b7ac5c68c0c3234ad55cd6680..ceca1cfa06339c2836e05566f4392c14ec4ef308 100644 (file)
@@ -136,7 +136,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const override;
        ///
-       bool findUsesToString() const override { return true; }
+       bool findUsesToString() const override { return false; }
        ///
        void toString(odocstream &) const override;
        ///