]> git.lyx.org Git - lyx.git/commitdiff
correctly escape the forward search command
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Apr 2010 14:45:09 +0000 (14:45 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Apr 2010 14:45:09 +0000 (14:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34142 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXRC.cpp

index 2aa6473b341960038c8754183a40d7aaaa97edc5..319d21692b54b155e9acdae489c3b9007887b0db 100644 (file)
@@ -1860,7 +1860,7 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
        case RC_FORWARD_SEARCH:
                if (ignore_system_lyxrc ||
                    forward_search != system_lyxrc.forward_search) {
-                       os << "\\forward_search \"" << forward_search << "\"\n";
+                       os << "\\forward_search \"" << escapeCommand(forward_search) << "\"\n";
                }
                if (tag != RC_LAST)
                        break;