We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8220e0e commit f64554dCopy full SHA for f64554d
LuaScript.cpp
@@ -166,6 +166,10 @@ extern "C" __declspec(dllexport) void beNotified(SCNotification *notifyCode) {
166
TCHAR fname[MAX_PATH];
167
NotifyHeader nh = notifyCode->nmhdr;
168
169
+ // We only want notifications from Notepad++ and it's 2 scintilla handles
170
+ if (nh.hwndFrom != nppData._nppHandle && nh.hwndFrom != nppData._scintillaMainHandle && nh.hwndFrom != nppData._scintillaSecondHandle)
171
+ return;
172
+
173
switch (nh.code) {
174
case SCN_CHARADDED:
175
LuaExtension::Instance().OnChar(notifyCode->ch);
0 commit comments