diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-09 13:15:47 +1000 |
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-09 13:15:47 +1000 |
| commit | 15a1ac5299a71728b459a2f0ed6616088aa3ae46 (patch) | |
| tree | df45cb36af8c7bb9516489155a648cafe5e1f099 /cocoa/ScintillaView.mm | |
| parent | 9310d055b0503098e04cfbceca310b3142e15586 (diff) | |
| download | scintilla-mirror-15a1ac5299a71728b459a2f0ed6616088aa3ae46.tar.gz | |
Fix problems with input composition that could stop undo working.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 5 |
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; |
