Fix URLs are not detected after a "Replace All" regression

Fix #14864, close #14889
pull/14894/head
molsonkiko 2024-03-20 14:44:06 -07:00 committed by Don Ho
parent d7011c41bf
commit cccd99b791
1 changed files with 2 additions and 0 deletions

View File

@ -3563,6 +3563,8 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
case NPPM_INTERNAL_DOCMODIFIEDBYREPLACEALL:
{
if (wParam == reinterpret_cast<WPARAM>(_pEditView->getCurrentBuffer()))
addHotSpot(_pEditView);
SCNotification scnN{};
scnN.nmhdr.code = NPPN_GLOBALMODIFIED;
scnN.nmhdr.hwndFrom = reinterpret_cast<void*>(wParam);