From 08f3ce9f150063e4c0616db437ceef01e17679fe Mon Sep 17 00:00:00 2001 From: Nathaniel Braun Date: Wed, 11 Mar 2026 08:18:41 +1100 Subject: Feature [feature-requests:#1581]. Simplify previous commit. --- src/Editor.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Editor.cxx b/src/Editor.cxx index 318131110..500373a8a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4919,10 +4919,8 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, KeyMod modi // Switch to just the click position SetSelection(newPos, newPos); } - if (!sel.Range(selectionPart).Empty()) { - if (dragDropEnabled) { - inDragDrop = DragDrop::initial; - } + if (dragDropEnabled && !sel.Range(selectionPart).Empty()) { + inDragDrop = DragDrop::initial; } } } -- cgit v1.2.3