aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-03-17 23:36:12 +0000
committernyamatongwe <devnull@localhost>2010-03-17 23:36:12 +0000
commitd88b14af066391e65948299ac46f2977ec2a7a45 (patch)
tree2b44869a27daba1357dc1238379194687770bae0
parentb546d224e8bb3b86d31e8bcbd5757616e5787ae7 (diff)
downloadscintilla-mirror-d88b14af066391e65948299ac46f2977ec2a7a45.tar.gz
Made multiple paste work on GTK+.
-rw-r--r--gtk/ScintillaGTK.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 88e4d8598..fd0862249 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1549,10 +1549,7 @@ void ScintillaGTK::ReceivedSelection(GtkSelectionData *selection_data) {
if (selText.rectangular) {
PasteRectangular(selStart, selText.s, selText.len);
} else {
- selStart = SelectionPosition(InsertSpace(selStart.Position(), selStart.VirtualSpace()));
- if (pdoc->InsertString(selStart.Position(),selText.s, selText.len)) {
- SetEmptySelection(selStart.Position() + selText.len);
- }
+ InsertPaste(selStart, selText.s, selText.len);
}
EnsureCaretVisible();
}