Bug#1105738: xterm: double-click can incorrectly add the preceding space to the selection
On 2025-05-14 01:59:38 +0200, Vincent Lefevre wrote:
> Package: xterm
> Version: 398-1
> Severity: normal
>
> When I double-click on a word at the beginning of a line such that
> this word is preceded by spaces, one space is incorrectly included
> in the selection.
>
> For instance, type
>
> printf "%$((COLUMNS+1))syz\n" x
>
> which gives a line full of spaces and the word "xyz" on the next
> physical line. If I double-click on the word "xyz", only "xyz"
> is highlighted as expected, but if I paste the selection with
> the middle-button, I get " xyz", i.e. with a preceding space.
Note that this is a regression in the latest version.
Version 397-1 did not have this issue.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Reply to: