Enhance Notepad++ closing speed by not scanning for URLs

Close #14931
This commit is contained in:
molsonkiko 2024-04-02 13:59:52 -07:00 committed by Don Ho
parent 0a7295878d
commit 2a6382b4a6
1 changed files with 2 additions and 0 deletions

View File

@ -3385,6 +3385,8 @@ bool isUrl(TCHAR * text, int textLen, int start, int* segmentLen)
void Notepad_plus::addHotSpot(ScintillaEditView* view) void Notepad_plus::addHotSpot(ScintillaEditView* view)
{ {
if (_isAttemptingCloseOnQuit)
return; // don't recalculate URLs when shutting down
ScintillaEditView* pView = view ? view : _pEditView; ScintillaEditView* pView = view ? view : _pEditView;
Buffer* currentBuf = pView->getCurrentBuffer(); Buffer* currentBuf = pView->getCurrentBuffer();