After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 451863 - Weird behaviour selection/copy-paste
Weird behaviour selection/copy-paste
Status: RESOLVED DUPLICATE of bug 323886
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-06-28 12:56 UTC by Pedro Gonnet
Modified: 2007-10-18 11:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Pedro Gonnet 2007-06-28 12:56:36 UTC
I'm using GtkSourceView through OpenLDev. 

There is some weirdness in the selection and copy/pasting of text in the editor. 

A triple-click anywhere in the line selects the entire line, yet not the \n at the end. This is a bit of a pain, since pasting the line somewhere else does so without the \n. This is not very convenient.

If I "manually" select an entire line + \n, and want to paste the same line a line below (i.e. duplicate a line), the editor won't let me paste there, presumably since it thinks I'm trying to paste the line onto itself, since the selection goes past the \n. This is somewhat annoying since I can only duplicate lines using Ctrl-C/Ctrl-V^2 or by selecting without the \n and adding it by hand afterwards.

Or maybe this behaviour is standard and I'm spoiled by other editors?

Cheers and thanks
Pedro
Comment 1 Paolo Borelli 2007-08-27 08:43:00 UTC
(sorry for the late reply)

well, I am pretty sure this has already been discussed in other bugs, but I can't find where now... If I recall correctly there where valid arguments on both sides.

Anyway this is really a GtkTextView issue, gtksourceview doesn't do anything custom with regard to selection handling. Moving to gtk.
Comment 2 Owen Taylor 2007-10-18 11:59:24 UTC
The line ending part is bug 323886

I don't understand the "past the same line a line below" part. If you
paste while the text is still selected, yes, you paste into the selection
and replace the selected text. This is very normal editor behavior.

There is a bug with DND-copying text right next to itself. See bug 349482.



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