The bug was originally part of 220943. A number
of problems were created by an earlier change.
The problem described as (2) was not caused by the
modification and so it has been extracted into
this bug report. Test cases and the proposed
patch have been added here.
It is included here.
(2) Double-click on the "c" in the first line, near its
RIGHT edge. The "c" becomes selected, as it should.
Now, double-click on the "c" near its LEFT edge,
keeping the button down after the second click. The
space to the left of the "c" is selected, not the "c"
itself. Now, move the mouse by ONE PIXEL in any
direction. The "ab" becomes selected as well.
...
The behavior described in (1) and (2) is obviously
incorrect. (In the case of clicking on the "c" near its
left edge, you might argue that you are effectively
clicking on the gap between the space and the "c" and
that therefore it is not necessarily incorrect for the
space to be the thing selected; but it certainly is
counterintuitive, since one expects the letter clicked
on to be part of the selected text.)
Submitted patch for library/test.tcl
Test cases for proposed functionality
Logged In: YES
user_id=32170
Fixed the text widget problem, although the same issue still
exists for the entry widget (which I'm not familiar with).
Marked the entry-widget test as knownBug for that reason.
See the last knownBug in event.test for details.