+ fix: last hyperlink was restyled to lexer's style (not desired hotspot style)

This commit is contained in:
Rainer Kottenhoff 2017-12-12 11:28:00 +01:00
parent af3a5a7e54
commit 65b340d7ad
3 changed files with 5 additions and 3 deletions

View File

@ -5831,6 +5831,8 @@ void EditUpdateUrlHotspots(HWND hwnd, int startPos, int endPos, BOOL bActiveHots
}
while (start < end);
SciCall_StartStyling(endPos);
if (bActiveHotspot)
UpdateEditWndUI();
else

View File

@ -5670,7 +5670,7 @@ LRESULT MsgNotify(HWND hwnd,WPARAM wParam,LPARAM lParam)
case SCN_SAVEPOINTREACHED:
bModified = FALSE;
UpdateToolbar();
//EditUpdateUrlHotspots(hwndEdit, 0, SciCall_GetTextLength());
EditUpdateUrlHotspots(hwndEdit, 0, SciCall_GetTextLength(), bHyperlinkHotspot);
break;
case SCN_MARGINCLICK:
@ -5686,7 +5686,7 @@ LRESULT MsgNotify(HWND hwnd,WPARAM wParam,LPARAM lParam)
case SCN_SAVEPOINTLEFT:
bModified = TRUE;
UpdateToolbar();
//EditUpdateUrlHotspots(hwndEdit, 0, SciCall_GetTextLength());
EditUpdateUrlHotspots(hwndEdit, 0, SciCall_GetTextLength(), bHyperlinkHotspot);
break;
}
break;

View File

@ -3557,7 +3557,7 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) {
// apply lexer styles
SendMessage(hwnd, SCI_COLOURISE, 0, (LPARAM)-1);
// override hyperlink hotspot style
// override lexer style by hyperlink hotspot style
Style_SetUrlHotSpot(hwnd, bHyperlinkHotspot);
EditUpdateUrlHotspots(hwnd, 0, SciCall_GetTextLength(), bHyperlinkHotspot);