GNOME Bugzilla – Bug 451863
Weird behaviour selection/copy-paste
Last modified: 2007-10-18 11:59:24 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
(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.
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 ***