word-select surprise

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sun Sep 18 22:19:03 UTC 2022


Le 17/09/2022 à 01:09, Andrew Parsloe a écrit :
> 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.

Hi Andrew,

Indeed, selectWord does not really consider pre-existing selection.

Easy solution : reset selection before selecting word
More difficult one: extend current selection up to word boundaries.

I do not know which one is the most useful. What would you expect if the 
original selection spans more that one word?

JMarc



More information about the lyx-devel mailing list