+ chg: in case of (partial) selection, copy only selection instead of complete hyperlink (issue #1296)

This commit is contained in:
Rainer Kottenhoff 2019-06-04 08:54:13 +02:00
parent 2883945b0c
commit be687cbc13

View File

@ -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;