From: Jürgen Spitzmüller Date: Mon, 4 Apr 2011 09:43:39 +0000 (+0000) Subject: *LyXER.cpp: X-Git-Tag: 2.0.0~248 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5f1bfdde1e1eb61987f178f643a08017dc3803f7;p=lyx.git *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 --- diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 215b9a606f..20daf4ac20 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -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; }