]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
FindAdv: Comments
[lyx.git] / 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;