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 | 400b1e2217287b9abb6e3ec66071dc98a9fc03c6 (patch) | |
tree | 53d0c34b9747bb843808b2844f869e1bd952bf0e | |
parent | 3b5d6373239e7a35d172c359dab3c4138f6f9b68 (diff) | |
download | scintilla-mirror-400b1e2217287b9abb6e3ec66071dc98a9fc03c6.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); } |