From 553a78b81d0deeb96940a7486074364e75d50068 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 9 Apr 2013 13:15:47 +1000 Subject: Fix problems with input composition that could stop undo working. --- cocoa/ScintillaView.mm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cocoa/ScintillaView.mm') diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index f9496cac1..48ccdf1ef 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -401,6 +401,11 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) value: mMarkedTextRange.location + mMarkedTextRange.length]; currentPosition = mMarkedTextRange.location; } + else + { + // Ensure only a single selection + mOwner.backend->SelectOnlyMainSelection(); + } // Keep Scintilla from collecting undo actions for the composition task. undoCollectionWasActive = [mOwner getGeneralProperty: SCI_GETUNDOCOLLECTION] != 0; -- cgit v1.2.3