From 2a6382b4a6b06ae817c147fb81820d44eea8cf53 Mon Sep 17 00:00:00 2001 From: molsonkiko <46202915+molsonkiko@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:59:52 -0700 Subject: [PATCH] Enhance Notepad++ closing speed by not scanning for URLs Close #14931 --- PowerEditor/src/Notepad_plus.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 6351fb1f7..0d541b6b9 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3385,6 +3385,8 @@ bool isUrl(TCHAR * text, int textLen, int start, int* segmentLen) void Notepad_plus::addHotSpot(ScintillaEditView* view) { + if (_isAttemptingCloseOnQuit) + return; // don't recalculate URLs when shutting down ScintillaEditView* pView = view ? view : _pEditView; Buffer* currentBuf = pView->getCurrentBuffer();