From 5f1bfdde1e1eb61987f178f643a08017dc3803f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 4 Apr 2011 09:43:39 +0000 Subject: [PATCH] *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 --- src/LyXRC.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5