Fix issue with clicking links in html/js/asp/php
This commit is contained in:
parent
a9de79a550
commit
74c24cf6b5
@ -985,7 +985,7 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// Get the style and make sure it is a hotspot
|
// Get the style and make sure it is a hotspot
|
||||||
auto style = notifyView->execute(SCI_GETSTYLEAT, notification->position);
|
uint8_t style = static_cast<uint8_t>(notifyView->execute(SCI_GETSTYLEAT, notification->position));
|
||||||
if (not notifyView->execute(SCI_STYLEGETHOTSPOT, style))
|
if (not notifyView->execute(SCI_STYLEGETHOTSPOT, style))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -994,9 +994,9 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
docLen = notifyView->getCurrentDocLen();
|
docLen = notifyView->getCurrentDocLen();
|
||||||
|
|
||||||
// Walk backwards/forwards to get the contiguous text in the same style
|
// Walk backwards/forwards to get the contiguous text in the same style
|
||||||
while (startPos > 0 && notifyView->execute(SCI_GETSTYLEAT, startPos - 1) == style)
|
while (startPos > 0 && static_cast<uint8_t>(notifyView->execute(SCI_GETSTYLEAT, startPos - 1)) == style)
|
||||||
startPos--;
|
startPos--;
|
||||||
while (endPos < docLen && notifyView->execute(SCI_GETSTYLEAT, endPos) == style)
|
while (endPos < docLen && static_cast<uint8_t>(notifyView->execute(SCI_GETSTYLEAT, endPos)) == style)
|
||||||
endPos++;
|
endPos++;
|
||||||
|
|
||||||
// Select the entire link
|
// Select the entire link
|
||||||
|
Loading…
Reference in New Issue
Block a user