diff --git a/src/Notepad3.c b/src/Notepad3.c index 7acaf60e7..38450e1ae 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -3670,8 +3670,10 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam) if (s_flagPasteBoard) { s_bLastCopyFromMe = true; } - if (!HandleHotSpotURL(SciCall_GetCurrentPos(), COPY_HYPERLINK)) { - SciCall_CopyAllowLine(); + if (!SciCall_IsSelectionEmpty() || + !HandleHotSpotURL(SciCall_GetCurrentPos(), COPY_HYPERLINK)) + { + SciCall_CopyAllowLine(); } UpdateToolbar(); break;