diff options
author | nyamatongwe <unknown> | 2010-03-17 23:36:12 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-03-17 23:36:12 +0000 |
commit | ab988ef01cea8b446e4121273f704d04e7eee80b (patch) | |
tree | 2b44869a27daba1357dc1238379194687770bae0 | |
parent | 13c82ea2ab89755ee9c60ab6975d587242871e07 (diff) | |
download | scintilla-mirror-ab988ef01cea8b446e4121273f704d04e7eee80b.tar.gz |
Made multiple paste work on GTK+.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 5 |
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(); } |