aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoruhf7 <unknown>2020-08-03 13:16:18 +1000
committeruhf7 <unknown>2020-08-03 13:16:18 +1000
commitc721515c2aaadfa745fba564a05cfc90460654eb (patch)
treeb2d9fa0f33d7230fa3da4ccc100c5eaa3e447773
parent53be1f1843bca71f99ae15af339b6c0b1408d212 (diff)
downloadscintilla-mirror-c721515c2aaadfa745fba564a05cfc90460654eb.tar.gz
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.
-rw-r--r--win32/ScintillaWin.cxx5
1 files changed, 4 insertions, 1 deletions
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;