Martin Vermeer wrote:
--- lyx-devel/trunk/src/mathed/InsetMathNest.C (original)
+++ lyx-devel/trunk/src/mathed/InsetMathNest.C Wed Nov 22 15:45:33 2006
@@ -493,7 +493,11 @@
                break;
case LFUN_CHAR_FORWARD:
-               cur.updateFlags(Update::FitCursor);
+               // FIXME: we have to enable full redraw here because of the
+               // visual box corners that define the inset. If we know for
+               // sure that we stay within the same cell we can optimize for
+               // that using:
+               //cur.updateFlags(Update::FitCursor);

Hmmm, would the construct

                cur.updateFlags(Update::FitCursor | Update::SinglePar);

work here? It would update always only the paragraph the math inset is
in, but the whole screen only if the cursor lands outside it.

Maybe, someone has to try...

But the real performance fix is to know if we are still in the same inset or not. I am sure this info is obtainable in some of the following lines but I have no time to look at it.

Abdel.

Reply via email to