aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNathaniel Braun <unknown>2026-01-10 09:14:23 +1100
committerNathaniel Braun <unknown>2026-01-10 09:14:23 +1100
commit58d4a329fe7cad43a664028f39fb0b1260ccf5b8 (patch)
treee53f413ff507a7662b6f10ff807e1a583fc5ad9e
parent56c071e2734e3812c7c77b611637cbc2698eb7d3 (diff)
downloadscintilla-mirror-58d4a329fe7cad43a664028f39fb0b1260ccf5b8.tar.gz
Feature [feature-requests:#184]. Small optimization.
-rw-r--r--src/Editor.cxx2
-rw-r--r--win32/ScintillaWin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a2c3e0fe9..37e0a2736 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5140,7 +5140,7 @@ void Editor::ButtonMoveWithModifiers(Point pt, unsigned int, KeyMod modifiers) {
}
}
// Display regular (drag) cursor over selection
- if (PointInSelection(pt) && !SelectionEmpty() && dragDropEnabled) {
+ if (dragDropEnabled && PointInSelection(pt) && !SelectionEmpty()) {
DisplayCursor(Window::Cursor::arrow);
SetHoverIndicatorPosition(Sci::invalidPosition);
} else {
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 17f686c21..f59a5e28e 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1754,7 +1754,7 @@ Window::Cursor ScintillaWin::ContextCursor(Point pt) {
// Display regular (drag) cursor over selection
if (PointInSelMargin(pt)) {
return GetMarginCursor(pt);
- } else if (!SelectionEmpty() && PointInSelection(pt) && dragDropEnabled) {
+ } else if (dragDropEnabled && !SelectionEmpty() && PointInSelection(pt)) {
return Window::Cursor::arrow;
} else if (PointIsHotspot(pt)) {
return Window::Cursor::hand;