Asger Ottar Alstrup wrote:
Abdelrazak Younes wrote:
Asger Ottar Alstrup wrote:
Click Ctrl+M, type 1. The 1 goes into the main text, not the math.

Old one also. I think this one is related to unicode. I've been step debugging through it and all key inputs inside mathed are translated into spaces... which make the cursor goes out of mathed!

Well, that's not what happens for me. When I press 1, that is correctly converted to UTF-8 representation of 1.

From line 708 in MathHull::doDispatch, it goes to InsetMathNest::interpret because arg has size 1. Then in line 1346 of InsetMathNest.C, cur.pos() == 0, and thus interpret returns false. Then line 709 in MathHull decides that we probably want to end editing.

I'm not sure where the mistake is, but it does not look like a unicode problem to me.

Maybe the problem was introduced in revision 14861 by baum, where he converted lfun arguments to docstring. Line 705 (was line 695 in 14860) was changed from only calling interpret with the first character to be called with all characters.

I'm trying to call interpret with just one character again, to see if that helps.

Regards,
Asger

Reply via email to