On Sun, Oct 26, 2008 at 06:32:30PM -0000, [EMAIL PROTECTED] wrote: > Author: forenr > Date: Sun Oct 26 19:32:25 2008 > New Revision: 27140 > > URL: http://www.lyx.org/trac/changeset/27140 > Log: > The LaTeX control space "\ " is a special char, too. In mathed, it should > be represented on screen as a visible space rather than as an empty macro. > > Modified: > lyx-devel/trunk/src/mathed/InsetMathNest.cpp > lyx-devel/trunk/src/mathed/InsetMathSpecialChar.cpp > lyx-devel/trunk/src/mathed/MathFactory.cpp > > Modified: lyx-devel/trunk/src/mathed/InsetMathNest.cpp > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/mathed/InsetMathNest.cpp?rev=27140 > ============================================================================== > --- lyx-devel/trunk/src/mathed/InsetMathNest.cpp (original) > +++ lyx-devel/trunk/src/mathed/InsetMathNest.cpp Sun Oct 26 19:32:25 2008 > @@ -1593,7 +1593,7 @@ > } > > if (c == '{' || c == '}' || c == '&' || c == '$' || c == '#' || > - c == '%' || c == '_') { > + c == '%' || c == '_' || c == ' ') { > cur.niceInsert(createInsetMath(docstring(1, c))); > return true; > }
I am a bit surprised this branch is ever taken for c == ' ' given that there is already a if (c == ' ') in line 1531 with all code paths ending in a 'return'. Is this a workaround for a cygwin specific compiler bug? Andre'