diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 209f4853..0bfa4179 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -525,9 +525,6 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa _pDocMap->reloadMap(); } - addHotSpot(_pEditView); - addHotSpot(_pNonEditView); - result = TRUE; break; } @@ -2471,8 +2468,16 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa case NPPM_INTERNAL_UPDATECLICKABLELINKS: { - addHotSpot(_pEditView); - addHotSpot(_pNonEditView); + ScintillaEditView* pView = reinterpret_cast(wParam); + if (pView == NULL) + { + addHotSpot(_pEditView); + addHotSpot(_pNonEditView); + } + else + { + addHotSpot(pView); + } } default: diff --git a/PowerEditor/src/ScitillaComponent/DocTabView.cpp b/PowerEditor/src/ScitillaComponent/DocTabView.cpp index f4cf6d45..1a9f1d50 100644 --- a/PowerEditor/src/ScitillaComponent/DocTabView.cpp +++ b/PowerEditor/src/ScitillaComponent/DocTabView.cpp @@ -228,5 +228,6 @@ void DocTabView::reSizeTo(RECT & rc) rc.bottom -= (borderWidth * 2); _pView->reSizeTo(rc); } + SendMessage(_hParent, NPPM_INTERNAL_UPDATECLICKABLELINKS, reinterpret_cast(_pView), 0); }