From 36a8db7334b7f5c8f27c3d1a1499cb8cf8133493 Mon Sep 17 00:00:00 2001 From: uhf7 Date: Mon, 3 Aug 2020 13:33:52 +1000 Subject: Backport: Bug [#2193]. Fixed bug where hovered indicator was not returning to non-hover appearance when mouse moved out of window or into margin. Backport of changeset 8472:2f8f87a7d57f. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 962f62cf1..8ff94b39f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4502,6 +4502,7 @@ void Editor::DwellEnd(bool mouseMoved) { void Editor::MouseLeave() { SetHotSpotRange(nullptr); + SetHoverIndicatorPosition(Sci::invalidPosition); if (!HaveMouseCapture()) { ptMouseLast = Point(-1, -1); DwellEnd(true); @@ -4870,6 +4871,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, int modifiers) { if (PointInSelMargin(pt)) { DisplayCursor(GetMarginCursor(pt)); SetHotSpotRange(nullptr); + SetHoverIndicatorPosition(Sci::invalidPosition); return; // No need to test for selection } } -- cgit v1.2.3