From f8bc766f60c961a918e81dd91c6418bb8c92f41d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 17 Mar 2010 23:45:05 +0000 Subject: Fix for bug #2971618 Middle-click paste inserts text beyond end of line. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index fd0862249..1f57258c1 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1850,7 +1850,7 @@ gint ScintillaGTK::PressThis(GdkEventButton *event) { (event->state & modifierTranslated(rectangularSelectionModifier)) != 0); } else if (event->button == 2) { // Grab the primary selection if it exists - SelectionPosition pos = SPositionFromLocation(pt); + SelectionPosition pos = SPositionFromLocation(pt, false, false, UserVirtualSpace()); if (OwnPrimarySelection() && primary.s == NULL) CopySelectionRange(&primary); -- cgit v1.2.3