From c721515c2aaadfa745fba564a05cfc90460654eb Mon Sep 17 00:00:00 2001 From: uhf7 Date: Mon, 3 Aug 2020 13:16:18 +1000 Subject: Backport: Bug [#2170]. Fixed cursor flicker when click past end of file and there is an indicator at file end. Backport of changeset 8471:34147e899966. --- win32/ScintillaWin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 11f411ba2..6d2f5ce08 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1363,7 +1363,10 @@ Window::Cursor ScintillaWin::ContextCursor(Point pt) { } else if (PointIsHotspot(pt)) { return Window::cursorHand; } else if (hoverIndicatorPos != Sci::invalidPosition) { - return Window::cursorHand; + const Sci::Position pos = PositionFromLocation(pt, true, true); + if (pos != Sci::invalidPosition) { + return Window::cursorHand; + } } } return Window::cursorText; -- cgit v1.2.3