word-select surprise
Andrew Parsloe
ajparsloe at gmail.com
Fri Sep 16 23:09:52 UTC 2022
I have a command-sequence that uses word-select prior to using cut.
Recently I was surprised to find the content of the *previous* item
saved to the clipboard being pasted rather than the expected one. After
experimenting, I think an unintuitive cursor positioning is the cause.
Suppose your word is abcdefghijk. If the cursor is positioned after the
k and you invoke word-select the whole word abcdefghijk is selected.
Howeve if you start selecting character by character from the right
(Shift + left arrow) and then after a few characters invoke word-select
the selection is cancelled, leaving the cursor where it started after
the k (meaning the cut operation of my command sequence had nothing to
save to the clipboard).
In the other direction, with cursor positioned before the a and then
(Shift+right arrow) a few characters selected, invoking word-select
expands the selection to the whole word. To my mind this is the
behaviour I would expect also in the backward direction (as is the case
in LibfreOffice).
This is in 2.4.0 alpha3 on windows 10.
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220917/cbeceb44/attachment.html>
More information about the lyx-devel
mailing list