Skip to content

Commit 8be29ba

Browse files
Ekopalypsedonho
authored andcommitted
Update NppIO.cpp, remove fake buffer id
Retain the buffer_id for the NPPN_FILEDELETED notification so that plugins can associate the deleted file with NPPN_FILEBEFOREDELETE. Fix notepad-plus-plus#6224, close notepad-plus-plus#17051
1 parent 3952c1e commit 8be29ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PowerEditor/src/NppIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,6 @@ bool Notepad_plus::fileDelete(BufferID id)
23372337
doClose(bufferID, SUB_VIEW, isSnapshotMode);
23382338

23392339
scnN.nmhdr.code = NPPN_FILEDELETED;
2340-
scnN.nmhdr.idFrom = (uptr_t)-1;
23412340
_pluginsManager.notify(&scnN);
23422341

23432342
return true;
@@ -2941,3 +2940,4 @@ void Notepad_plus::saveCurrentSession()
29412940
{
29422941
::SendMessage(_pPublicInterface->getHSelf(), NPPM_INTERNAL_SAVECURRENTSESSION, 0, 0);
29432942
}
2943+

0 commit comments

Comments
 (0)