aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNathaniel Braun <unknown>2026-03-11 08:18:41 +1100
committerNathaniel Braun <unknown>2026-03-11 08:18:41 +1100
commit08f3ce9f150063e4c0616db437ceef01e17679fe (patch)
tree42dad7de829d7b5917fa12136a353ce06743c883
parent20184b70992e72b4ad26f93284f9654cb29c01e2 (diff)
downloadscintilla-mirror-08f3ce9f150063e4c0616db437ceef01e17679fe.tar.gz
Feature [feature-requests:#1581]. Simplify previous commit.
-rw-r--r--src/Editor.cxx6
1 files 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;
}
}
}