mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+ fix: last hyperlink was restyled to lexer's style (not desired hotspot style)
This commit is contained in:
parent
af3a5a7e54
commit
65b340d7ad
@ -5831,6 +5831,8 @@ void EditUpdateUrlHotspots(HWND hwnd, int startPos, int endPos, BOOL bActiveHots
|
||||
}
|
||||
while (start < end);
|
||||
|
||||
SciCall_StartStyling(endPos);
|
||||
|
||||
if (bActiveHotspot)
|
||||
UpdateEditWndUI();
|
||||
else
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user