Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314065 - [Workbench] Selected text (containing underscores), copied with Ctrl + Insert, does not paste correctly into Gnome VteTerminal widget using Shift + Insert
Summary: [Workbench] Selected text (containing underscores), copied with Ctrl + Insert...
Status: CLOSED DUPLICATE of bug 290851
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-24 04:14 EDT by danielewski CLA
Modified: 2019-02-21 15:43 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description danielewski CLA 2010-05-24 04:14:04 EDT
Build Identifier: M20100211-1343

When I copy selected text using Ctrl+Insert (text must contain underscore, for example DOC_NAMESPACE), then paste using Shift+Insert into gnome-terminal based app (for example Midnight Commander search dialog) only part of string is pasted (from underscore). At first I suspected Gnome's VteTerminal and filed bug:  https://bugzilla.gnome.org/show_bug.cgi?id=552788 (see for more details) but after debugging I realized that it's rather problem with Eclipse itself (probably Eclipse sets PRIMARY buffer incorrectly, pasting from CLIPBOARD buffer works OK).
 It happened with Eclipse 3.3, but 3.5 also suffers.

Reproducible: Always

Steps to Reproduce:
1. Select text with underscore
2. Copy using Ctrl+Insert
3. Switch to gnome-terminal kind of application (like Midnight Commander)
4. Paste with Shift+Insert
Comment 1 Praveen CLA 2010-05-28 08:00:15 EDT
I am not able to reproduce the paste problem on my machine when the text (containing underscore) is copied/pasted.
Do you have any utilities like Klipper/Glipper running on your system ? Are you able to reproduce the same behavior using 3.6 builds as well ? Can you provide the Linux distro of your machine ?
Comment 2 danielewski CLA 2010-05-31 08:20:17 EDT
I've tried with Eclipse 3.3 and 3.5 with Fedora 6 and Ubuntu 9.10, do not use any helper utilities.

I also found what is ESSENTIAL to reproduce this bug:
DO NOT mark selection with mouse!
DO NOT mark selection by holding (just) Shift!

MARK by holding Ctrl+Shift (this is crucial!) and moving cursor using arrow's keys, then Ctrl+Insert to copy, switch to gnome-terminal and Shift+Insert to paste.
 Moreover, you can note that whats copy/pasted depends on direction of marking (cool, huh).
Comment 3 danielewski CLA 2011-05-16 09:31:31 EDT
Recent release "Helios" also suffers the same issue.
Comment 4 Alexander Kurtakov CLA 2018-07-13 09:02:05 EDT
Reproduced with today's I-build.
Comment 5 Eric Williams CLA 2019-02-21 15:43:08 EST

*** This bug has been marked as a duplicate of bug 290851 ***