]> git.lyx.org Git - features.git/commitdiff
We need the whole line in settings
authorPavel Sanda <sanda@lyx.org>
Thu, 15 Apr 2010 14:35:02 +0000 (14:35 +0000)
committerPavel Sanda <sanda@lyx.org>
Thu, 15 Apr 2010 14:35:02 +0000 (14:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34141 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXRC.cpp

index 7402484b5ba4e74c68c3709f15e9a29f8b07acbd..2aa6473b341960038c8754183a40d7aaaa97edc5 100644 (file)
@@ -1159,7 +1159,8 @@ int LyXRC::read(Lexer & lexrc)
                        lexrc >> single_close_tab_button;
                        break;
                case RC_FORWARD_SEARCH:
-                       lexrc >> forward_search;
+                       if (lexrc.next(true)) 
+                               forward_search = lexrc.getString();
                        break;
 
                // Obsoteted in 1.4.0
@@ -1859,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 \"" << forward_search << "\"\n";
                }
                if (tag != RC_LAST)
                        break;