]> git.lyx.org Git - features.git/commitdiff
*LyXER.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 4 Apr 2011 09:43:39 +0000 (09:43 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 4 Apr 2011 09:43:39 +0000 (09:43 +0000)
- parse editor_alternatives with options correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38240 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXRC.cpp

index 215b9a606f1d5e1c6ab9045da71fad9e8d1e9319..20daf4ac2059d1647f9c0437da16bdb5fc00d1f7 100644 (file)
@@ -1139,7 +1139,10 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
                }
                case RC_EDITOR_ALTERNATIVES:  {
                        string format, command;
-                       lexrc >> format >> command;
+                       if (lexrc.next())
+                               format = lexrc.getString();
+                       if (lexrc.eatLine())
+                               command = lexrc.getString();
                        editor_alternatives[format].insert(command);
                        break;
                }