From 58d4a329fe7cad43a664028f39fb0b1260ccf5b8 Mon Sep 17 00:00:00 2001 From: Nathaniel Braun Date: Sat, 10 Jan 2026 09:14:23 +1100 Subject: Feature [feature-requests:#184]. Small optimization. --- src/Editor.cxx | 2 +- win32/ScintillaWin.cxx | 2 +- 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; -- cgit v1.2.3