aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-04-17 14:45:35 +1000
committernyamatongwe <nyamatongwe@gmail.com>2013-04-17 14:45:35 +1000
commit400b1e2217287b9abb6e3ec66071dc98a9fc03c6 (patch)
tree53d0c34b9747bb843808b2844f869e1bd952bf0e
parent3b5d6373239e7a35d172c359dab3c4138f6f9b68 (diff)
downloadscintilla-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.mm2
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);
}