Minor performance issue on shift + down, shift + up on includes

Scott Kostyshak skostysh at lyx.org
Mon Apr 22 18:47:10 UTC 2024


To reproduce:

1. Move the attached file in the lib/docs directory.
2. Open the file.
3. Put the cursor before, e.g., the Additional.lyx include.
4. Press Shift + Down (or Shift + Up).

Result is that there is a small pause before the selection is finished.
Subsequent presses extending the selection in the same direction are
almost instantaneous, so it's just the first one.

In case it's hard to notice, you can try the following, after (3) hold
shift and then press Down. After the selection gets to the bottom, keep
holding shift but change from holding Down to holding Up. You'll notice
that the cursor gets stuck for a small amount of time at the anchor
point.

Strangely, I can reproduce if I select with Shift + Right, which also
selects all of the insets. This surprised me, and maybe it provides a
clue.

Can anyone reproduce?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MergedManuals-simple.23.lyx
Type: application/x-lyx
Size: 3371 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240422/84c82f43/attachment.lyx>
-------------- 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/20240422/84c82f43/attachment.asc>


More information about the lyx-devel mailing list