*LyXER.cpp:

- parse editor_alternatives with options correctly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38240 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2011-04-04 09:43:39 +00:00
parent 2708a711d0
commit 5f1bfdde1e

View 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;
}