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 8e65075 commit b84e190Copy full SHA for b84e190
PythonScript/src/ScintillaWrapper.cpp
@@ -240,7 +240,12 @@ void ScintillaWrapper::notify(SCNotification *notifyCode)
240
params["hwndFrom"] = notifyCode->nmhdr.hwndFrom;
241
params["position"] = notifyCode->position;
242
params["modificationType"] = notifyCode->modificationType;
243
- params["text"] = notifyCode->text;
+ if (notifyCode->text)
244
+ {
245
+ // notifyCode->text is not null terminated
246
+ std::string text(notifyCode->text, notifyCode->length);
247
+ params["text"] = text.c_str();
248
+ }
249
params["length"] = notifyCode->length;
250
params["linesAdded"] = notifyCode->linesAdded;
251
params["line"] = notifyCode->line;
0 commit comments