[PATCH] outline-up/down: preserve cursor's position

Scott Kostyshak skostysh at lyx.org
Tue Mar 10 01:25:42 UTC 2020


Is there a reason to do the following for outline-up and outline-down?

  setCursor(cur, cur.pit(), 0);

It does not seem to be necessary in my testing, but I'm wondering if
there's a case I'm missing. Or perhaps it is not necessary but is
desired behavior for some reason?

It has been this way for a long time, at least since 71f356c3.

Attached is a patch to remove it so that the cursor position does not
change when executing those actions.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-outline-up-down-preserve-cursor-s-position.patch
Type: text/x-diff
Size: 999 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200309/1014e2a9/attachment.patch>
-------------- 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/20200309/1014e2a9/attachment.asc>


More information about the lyx-devel mailing list