diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-17 14:45:35 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-04-17 14:45:35 +1000 |
commit | ee4f9a97ff16c688dfe7f114d7cc5d16053d85cf (patch) | |
tree | 65f6bec1dd24c407fa969bee36a63be2c4327626 | |
parent | 674b329d018fac03c92ef9270371c55647b4bb09 (diff) | |
download | scintilla-mirror-ee4f9a97ff16c688dfe7f114d7cc5d16053d85cf.tar.gz |
Commit the current text when switching documents instead of discarding it as
this retains the user's input when they forget to commit.
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index d8dd6ae7b..e22a9dac5 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1940,7 +1940,7 @@ void ScintillaCocoa::SetDocPointer(Document *document) NSTextInputContext *inctxt = [NSTextInputContext currentInputContext]; [inctxt discardMarkedText]; InnerView *inner = ContentView(); - [inner removeMarkedText]; + [inner unmarkText]; Editor::SetDocPointer(document); } |