On Wed, 2006-11-22 at 14:45 +0000, [EMAIL PROTECTED] wrote: > Author: younes > Date: Wed Nov 22 15:45:33 2006 > New Revision: 16011 > > URL: http://www.lyx.org/trac/changeset/16011 > Log: > * InsetMathNest::lfunMouseRelease(): keep the optimization only if > there is no selection. This allows to shorten the time when the cursor > is initially set at the beginning of the math inset. > > * InsetMathNest::lfunMousePress(): Disable optimization introduced in > revision 16006. This is because we need the box corners when > navigating inside formulas. > > * InsetMathNest::doDispatch(): ditto. > > > Modified: > lyx-devel/trunk/src/mathed/InsetMathNest.C > > Modified: lyx-devel/trunk/src/mathed/InsetMathNest.C > URL: > http://www.lyx.org/trac/file/lyx-devel/trunk/src/mathed/InsetMathNest.C?rev=16011 > ============================================================================== > --- 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.
- Martin
signature.asc
Description: This is a digitally signed message part
