Skip to content

Commit

Permalink
Rename notification
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Feb 21, 2024
1 parent 054f1f1 commit f850a9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1173,9 +1173,9 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 };
//scnNotification->nmhdr.hwndFrom = hwndNpp;
//scnNotification->nmhdr.idFrom = BufferID; //where pluginMessage is pointer of type wchar_t

#define NPPN_DOCMODIFIEDBYREPLACEALL (NPPN_FIRST + 29) // To notify plugins that the current document is just modified by Replace All action. For solving the performance issue (from v8.6.4),
// Notepad++ doesn't trigger SCN_MODIFIED & other Scitilla notifications during Replace All action anymore.
// Plugin devs should monitor NPPN_DOCMODIFIEDBYREPLACEALL instead. This notification is implemented in Notepad++ v8.6.5.
#define NPPN_GLOBALMODIFIED (NPPN_FIRST + 29) // To notify plugins that the current document is just modified by Replace All action. For solving the performance issue (from v8.6.4),
// Notepad++ doesn't trigger SCN_MODIFIED & other Scitilla notifications during Replace All action anymore.
// Plugin devs should monitor NPPN_GLOBALMODIFIED instead. This notification is implemented in Notepad++ v8.6.5.
//scnNotification->nmhdr.code = NPPN_DOCMODIFIEDBYREPLACEALL;
//scnNotification->nmhdr.hwndFrom = hwndNpp;
//scnNotification->nmhdr.idFrom = 0;
2 changes: 1 addition & 1 deletion PowerEditor/src/NppBigSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3519,7 +3519,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
case NPPM_INTERNAL_DOCMODIFIEDBYREPLACEALL:
{
SCNotification scnN{};
scnN.nmhdr.code = NPPN_DOCMODIFIEDBYREPLACEALL;
scnN.nmhdr.code = NPPN_GLOBALMODIFIED;
scnN.nmhdr.hwndFrom = hwnd;
scnN.nmhdr.idFrom = 0;
_pluginsManager.notify(&scnN);
Expand Down

0 comments on commit f850a9f

Please sign in to comment.