aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-11 09:29:05 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-11 09:29:05 +1100
commit083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (patch)
treed28d0b4042348afcde28455406ca3cb69d11ab12 /cocoa
parent00f3a3ba52bb03872758a300719622161b469faa (diff)
downloadscintilla-mirror-083b30ff1783f7b6c803d2c5489ddcd5d0dce14f.tar.gz
Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.
This can reduce the time taken to fold a document by half. Backport of changeset 7110:09c647755bed.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index b21dbb102..ec78479b9 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -2058,7 +2058,7 @@ void ScintillaCocoa::NotifyChange()
void ScintillaCocoa::NotifyFocus(bool focus)
{
- if (notifyProc != NULL)
+ if (commandEvents && notifyProc)
notifyProc(notifyObj, WM_COMMAND, Platform::LongFromTwoShorts(static_cast<short>(GetCtrlID()),
(focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS)),
(uintptr_t) this);