[PATCH] outline-up/down: preserve cursor's position
Scott Kostyshak
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.
Thanks,
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200311/a0cad940/attachment.asc>
More information about the lyx-devel
mailing list