diff options
author | nyamatongwe <devnull@localhost> | 2010-03-17 23:36:12 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-03-17 23:36:12 +0000 |
commit | d88b14af066391e65948299ac46f2977ec2a7a45 (patch) | |
tree | 2b44869a27daba1357dc1238379194687770bae0 | |
parent | b546d224e8bb3b86d31e8bcbd5757616e5787ae7 (diff) | |
download | scintilla-mirror-d88b14af066391e65948299ac46f2977ec2a7a45.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(); } |