aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-10-25 08:25:33 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-10-25 08:25:33 +1100
commit22c9570a6c186fd14c5612f8ba4d3c828be86884 (patch)
tree569bbee837538d8b7d7620d7e31a17face292111 /cocoa
parent8a5a8dec91164f7578f1f004794510126011a93a (diff)
downloadscintilla-mirror-22c9570a6c186fd14c5612f8ba4d3c828be86884.tar.gz
Bug [#1541]. Paste into multiple selections on OSX only inserts at one selection point.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.mm10
1 files changed, 5 insertions, 5 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 8cd6be2a8..e5069cff7 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -931,15 +931,15 @@ void ScintillaCocoa::Paste(bool forceRectangular)
pdoc->BeginUndoAction();
ClearSelection(false);
int length = selectedText.Length();
+ SelectionPosition selStart = sel.RangeMain().Start();
if (selectedText.rectangular)
{
- SelectionPosition selStart = sel.RangeMain().Start();
PasteRectangular(selStart, selectedText.Data(), length);
}
- else
- if (pdoc->InsertString(sel.RangeMain().caret.Position(), selectedText.Data(), length))
- SetEmptySelection(sel.RangeMain().caret.Position() + length);
-
+ else
+ {
+ InsertPaste(selStart, selectedText.Data(), length);
+ }
pdoc->EndUndoAction();
Redraw();