GNOME Bugzilla – Bug 90608
select and middle click gives unexpected results
Last modified: 2011-02-04 16:11:52 UTC
middle clicking to paste at the end of a selection doesn't work (as expected)
Steps to reproduce.
1. Open gedit type in the following text:
2. Select test1 by starting at the beginning at the end of the line and
dragging the cursor down one line.
3. Place the pointer at the start of test3 and middle click. test1
(including the new line) should be pasted as expected and the selection
will remain highlighted.
4. Place the pointer in the line just below test1 and middle click.
Nothing is pasted (or at least nothing appears to be pasted - it may be
pasting to the selected area) and the selection is no longer highlighted.
5. Highlight the test in test1.
6. Place the pointer at the end of test3 and middle-click. test should be
7. Now place the pointer between the t and 1 in test1 (just after the
highlight) and middle-click. Again, the highlighting disappears and no
paste has been preformed.
I would expect text to be pasted in point 3, 4, 6 and 7. Also, after
pasting the highlighted text should remain highlighted.
It appears that middle-click is trying to replace highlighted text instead
of simply pasting where the cursor is. If this is the case then this is
inconsistent behavior that creates confusion. While is 'might be'
appropriate for selected text in one window to be pasted into the selected
region of another window, it is unclear why you would select text and then
middle-click to replace that text (with the same thing).
In short, middle-click needs to paste content regardless of the cursor
Are you able to reproduce this bug in gtk-demo (GtkTextView demo),
testtext and/or bugs-buddy ?
I don't have gtk-demo or testtext, but I can reproduce it in bug-buddy.
Then, I think this is a GtkTextView bug.
My comment in #81880 probably applies here too... i.e. without having
considered it deeply, my first reaction would be that selecting then
middle-clicking to paste should do the same (and leave you in the same
state) as selecting, pressing Ctrl+C, moving cursor to insertion point
and pressing Ctrl+V. I could well be missing some subtlety or other
Is this a dup of bug 81880, then, Calum?
Pretty much, I guess.
*** This bug has been marked as a duplicate of 81880 ***