diff options
author | uhf7 <unknown> | 2020-08-03 13:33:52 +1000 |
---|---|---|
committer | uhf7 <unknown> | 2020-08-03 13:33:52 +1000 |
commit | 36a8db7334b7f5c8f27c3d1a1499cb8cf8133493 (patch) | |
tree | d21435da6adfe002741a2642824a1bc43384bb03 /src/Editor.cxx | |
parent | c721515c2aaadfa745fba564a05cfc90460654eb (diff) | |
download | scintilla-mirror-36a8db7334b7f5c8f27c3d1a1499cb8cf8133493.tar.gz |
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.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 } } |