diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-10 08:13:23 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-09-10 08:13:23 +1000 |
commit | cf7272753b7f80e10f932084dba1e60f94ea21dd (patch) | |
tree | 25e151ea47fb474a8becfdd6c6525dfa22ca3a03 | |
parent | 23bd3f67048c14e3569560c367381af76f6c4342 (diff) | |
download | scintilla-mirror-cf7272753b7f80e10f932084dba1e60f94ea21dd.tar.gz |
Bug [#1522]. Don't send selection change notification when scrolling.
-rw-r--r-- | cocoa/ScintillaView.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index 942761bd0..9eae83718 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -1018,7 +1018,10 @@ static void notification(intptr_t windowid, unsigned int iMessage, uintptr_t wPa NSPoint caretPosition = editor->mBackend->GetCaretPosition(); [editor->mInfoBar notify: IBNCaretChanged message: nil location: caretPosition value: 0]; [editor sendNotification: SCIUpdateUINotification]; - [editor sendNotification: NSTextViewDidChangeSelectionNotification]; + if (scn->updated & (SC_UPDATE_SELECTION | SC_UPDATE_CONTENT)) + { + [editor sendNotification: NSTextViewDidChangeSelectionNotification]; + } break; } } |