]> git.lyx.org Git - features.git/commitdiff
FindAdv: Amend cd941804
authorKornel Benko <kornel@lyx.org>
Thu, 6 Dec 2018 13:18:24 +0000 (14:18 +0100)
committerKornel Benko <kornel@lyx.org>
Thu, 6 Dec 2018 13:20:43 +0000 (14:20 +0100)
Revert changes in Paragraph.cpp

src/Paragraph.cpp

index 329bbfd01040551016fe41bdc993dd884169fab9..5bad896dfdf4e13f0a09bc9d1597e52290332e16 100644 (file)
@@ -1297,17 +1297,9 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
                column += 14;
                break;
 
-       case '&':
-       case '%': case '#':
-       case '_':
-               if (runparams.for_search) {
-                       os.put(c);
-                       column += 1;
-                       break;
-               }
-               // fall through
-       case '$':
-       case '{': case '}':
+       case '$': case '&':
+       case '%': case '#': case '{':
+       case '}': case '_':
                os << '\\';
                os.put(c);
                column += 1;