From 687c6486a347ff6eb36c77c1311c7a2f256b3e94 Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 16 Apr 2019 22:11:43 +0200 Subject: [PATCH] Fix cursor flickering after double clicking on URL Fix #5529 --- PowerEditor/src/NppNotification.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 617e0a39..fe7fad86 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -1012,6 +1012,11 @@ BOOL Notepad_plus::notify(SCNotification *notification) notifyView->execute(SCI_SETCURRENTPOS, endPos); generic_string url = notifyView->getGenericTextAsString(startPos, endPos); + + // remove the flickering: it seems a mouse click is missing after SCN_HOTSPOTDOUBLECLICK + ::PostMessage(notifyView->getHSelf(), WM_LBUTTONDOWN, 0, 0); + ::PostMessage(notifyView->getHSelf(), WM_LBUTTONUP, 0, 0); + ::ShellExecute(_pPublicInterface->getHSelf(), TEXT("open"), url.c_str(), NULL, NULL, SW_SHOW); break;