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 | adac6c4294afb365ba53d803921d11288e558bc0 (patch) | |
tree | 8a2757dceed911eb3266b0bf74a965eae2bdb8dc | |
parent | b5c4193c5b1a2148391f5fbf70bd0d9c06d36258 (diff) | |
download | scintilla-mirror-adac6c4294afb365ba53d803921d11288e558bc0.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; } } |