From 22c9570a6c186fd14c5612f8ba4d3c828be86884 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 25 Oct 2013 08:25:33 +1100 Subject: Bug [#1541]. Paste into multiple selections on OSX only inserts at one selection point. --- cocoa/ScintillaCocoa.mm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cocoa') 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(); -- cgit v1.2.3