[PATCH] outline-up/down: preserve cursor's position
skostysh at lyx.org
Wed Mar 11 18:34:43 UTC 2020
On Wed, Mar 11, 2020 at 03:43:00PM +0100, Jean-Marc Lasgouttes wrote:
> Le 10/03/2020 à 15:31, Scott Kostyshak a écrit :
> > Perhaps the following be more reasonable and safer?
> > setCursor(cur, cur.pit(), cur.pos());
> > The above seems safe since I'm just changing "0" to "cur.pos()", and I
> > don't see how the length of the paragraph can change after this
> > operation.
> This might be a safer option, since Text::setCursor does some things that
> may or may not be useful here. Actually nobody knows and nobody dares to
> simplify the code there.
Sounds good. It's in master at adb7283b.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: not available
More information about the lyx-devel