aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaView.mm
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-04-09 13:15:47 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-04-09 13:15:47 +1000
commit553a78b81d0deeb96940a7486074364e75d50068 (patch)
tree10a81ce19dccb22eca3fd76b0852a954cccc96be /cocoa/ScintillaView.mm
parentdf2d4c896cc116ebce3f40718cfabc75eb804e38 (diff)
downloadscintilla-mirror-553a78b81d0deeb96940a7486074364e75d50068.tar.gz
Fix problems with input composition that could stop undo working.
Diffstat (limited to 'cocoa/ScintillaView.mm')
-rw-r--r--cocoa/ScintillaView.mm5
1 files changed, 5 insertions, 0 deletions
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;