From 74c24cf6b54f10ea70ac1651ba9efd62c4e18d3b Mon Sep 17 00:00:00 2001 From: dail8859 Date: Fri, 10 Mar 2017 19:48:58 -0500 Subject: [PATCH] Fix issue with clicking links in html/js/asp/php --- PowerEditor/src/NppNotification.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index fa8a50e4..7c58331d 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -985,7 +985,7 @@ BOOL Notepad_plus::notify(SCNotification *notification) return FALSE; // Get the style and make sure it is a hotspot - auto style = notifyView->execute(SCI_GETSTYLEAT, notification->position); + uint8_t style = static_cast(notifyView->execute(SCI_GETSTYLEAT, notification->position)); if (not notifyView->execute(SCI_STYLEGETHOTSPOT, style)) break; @@ -994,9 +994,9 @@ BOOL Notepad_plus::notify(SCNotification *notification) docLen = notifyView->getCurrentDocLen(); // 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(notifyView->execute(SCI_GETSTYLEAT, startPos - 1)) == style) startPos--; - while (endPos < docLen && notifyView->execute(SCI_GETSTYLEAT, endPos) == style) + while (endPos < docLen && static_cast(notifyView->execute(SCI_GETSTYLEAT, endPos)) == style) endPos++; // Select the entire link