ahnbs82 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Copy/paste to URL in X-windows (via PRIMARY selection) doesn't work. #213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run rest-client on linux, under X windows.
2. Select some text in another window (e.g. xterm, vim, etc), causing it to 
become the primary slection
3. middle-click into the URL bar of rest-client

Expected behavior:

I expect my copied text to be pasted into the URL bar.
In other programs, such as firefox, this is indeed what happens.

Actual behavior:

As soon as the rest-client window becomes active, it highlights the text in the 
URL bar, causing that to become the primary selection.

Then the middle-click is processed, which ends up just duplicating whatever 
text was already in the URL bar.

What version of the product are you using? On what operating system?

version 3.4.2, on Fedora 21.

Please provide any additional information below.

This used to work in a previous version of rest-client.
The previous version *did* have the bad behavior of auto-selecting the URL 
often, but in this particular case, it would paste the text before mucking with 
the selection.
I don't know what changed to cause this.

I note that you *can* paste in this way into the "body" window (maybe other 
places, too).
This bad behavior is specific to the URL bar.

In general though, it would be nice if rest-client just left selections alone, 
to avoid this issue completely.

Copy/paste when operating purely inside rest-client (either via Ctrl+C/Ctrl+V 
or the PRIMARY selection) works as expected.

Original issue reported on code.google.com by jwde...@gmail.com on 12 Feb 2015 at 5:01