From cf7272753b7f80e10f932084dba1e60f94ea21dd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 10 Sep 2013 08:13:23 +1000 Subject: Bug [#1522]. Don't send selection change notification when scrolling. --- cocoa/ScintillaView.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cocoa') 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; } } -- cgit v1.2.3