diff options
author | uhf7 <unknown> | 2020-08-03 13:33:52 +1000 |
---|---|---|
committer | uhf7 <unknown> | 2020-08-03 13:33:52 +1000 |
commit | 33327930f7c87bc1ad620c89e506e341ccb2238a (patch) | |
tree | 71c3dc04e6b7cfbad317abf661cb9102612b5a66 | |
parent | 87904678847c17c12c11727e03c042b53cd31f2d (diff) | |
download | scintilla-mirror-33327930f7c87bc1ad620c89e506e341ccb2238a.tar.gz |
Bug [#2193]. Fixed bug where hovered indicator was not returning to non-hover
appearance when mouse moved out of window or into margin.
-rw-r--r-- | doc/ScintillaHistory.html | 5 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index d25f79c92..14839fc45 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -595,6 +595,11 @@ <a href="https://sourceforge.net/p/scintilla/bugs/2170/">Bug #2170</a>. </li> <li> + Fixed bug where hovered indicator was not returning to non-hover + appearance when mouse moved out of window or into margin. + <a href="https://sourceforge.net/p/scintilla/bugs/2193/">Bug #2193</a>. + </li> + <li> Fixed a bug in SciTE with stack balance when a syntax error in the Lua startup script caused continuing failures to find functions after the syntax error was corrected. <a href="https://sourceforge.net/p/scintilla/bugs/2176/">Bug #2176</a>. diff --git a/src/Editor.cxx b/src/Editor.cxx index 1ece08feb..bc9b7e713 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4506,6 +4506,7 @@ void Editor::DwellEnd(bool mouseMoved) { void Editor::MouseLeave() { SetHotSpotRange(nullptr); + SetHoverIndicatorPosition(Sci::invalidPosition); if (!HaveMouseCapture()) { ptMouseLast = Point(-1, -1); DwellEnd(true); @@ -4874,6 +4875,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 } } |