Fix URL Hovered colour disappears after modifying any Clickable Link Settings regression

Fix #8493, close #8496
pull/8500/head
Udo Hoffmann 2020-06-29 21:31:09 +02:00 committed by Don HO
parent 26d360dd9e
commit 3315303050
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 8 additions and 6 deletions

View File

@ -2498,8 +2498,15 @@ void Notepad_plus::addHotSpot(ScintillaEditView* view)
LPARAM indicStyle = (urlAction == 2) ? INDIC_PLAIN : INDIC_HIDDEN;
LPARAM indicStyleCur = pView->execute(SCI_INDICGETSTYLE, URL_INDIC);
if (indicStyleCur != indicStyle)
LPARAM indicHoverStyleCur = pView->execute(SCI_INDICGETHOVERSTYLE, URL_INDIC);
if ((indicStyleCur != indicStyle) || (indicHoverStyleCur != INDIC_FULLBOX))
{
pView->execute(SCI_INDICSETSTYLE, URL_INDIC, indicStyle);
pView->execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
pView->execute(SCI_INDICSETALPHA, URL_INDIC, 70);
pView->execute(SCI_INDICSETFLAGS, URL_INDIC, SC_INDICFLAG_VALUEFORE);
}
int startPos = 0;
int endPos = -1;

View File

@ -329,11 +329,6 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT4, true);
execute(SCI_INDICSETUNDER, SCE_UNIVERSAL_FOUND_STYLE_EXT5, true);
execute(SCI_INDICSETHOVERSTYLE, URL_INDIC, INDIC_FULLBOX);
execute(SCI_INDICSETALPHA, URL_INDIC, 70);
execute(SCI_INDICSETFLAGS, URL_INDIC, SC_INDICFLAG_VALUEFORE);
if ((NppParameters::getInstance()).getNppGUI()._writeTechnologyEngine == directWriteTechnology)
execute(SCI_SETTECHNOLOGY, SC_TECHNOLOGY_DIRECTWRITE);
// If useDirectWrite is turned off, leave the technology setting untouched,