From 80319a71ee36d1acd2341cdc0d96fc9fd3d25c0f Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 1 Feb 2025 06:34:34 +0100 Subject: [PATCH] Improve the code example of new API NPPM_ADDSCNMODIFIEDFLAGS Fix https://community.notepad-plus-plus.org/topic/26595/new-api-to-fix-eventual-regression-regarding-scn_modified-for-some-plugins/9?_=1738384417702 --- PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h b/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h index c2264a550..e7a5c97ee 100644 --- a/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h +++ b/PowerEditor/src/MISC/PluginsManager/Notepad_plus_msgs.h @@ -1007,8 +1007,8 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64, PF_ARM64 }; // { // case NPPN_READY: // { - // // Add SC_MOD_DELETETEXT and SC_MOD_INSERTTEXT notifications - // ::SendMessage(nppData._nppHandle, NPPM_ADDSCNMODIFIEDFLAGS, 0, SC_MOD_DELETETEXT | SC_MOD_INSERTTEXT); + // // Add SC_MOD_BEFOREDELETE and SC_MOD_BEFOREINSERT to listen to the 2 events of SCN_MODIFIED + // ::SendMessage(nppData._nppHandle, NPPM_ADDSCNMODIFIEDFLAGS, 0, SC_MOD_BEFOREDELETE | SC_MOD_BEFOREINSERT); // } // break; // ...