diff options
| author | Nathaniel Braun <unknown> | 2026-03-11 08:18:41 +1100 |
|---|---|---|
| committer | Nathaniel Braun <unknown> | 2026-03-11 08:18:41 +1100 |
| commit | 08f3ce9f150063e4c0616db437ceef01e17679fe (patch) | |
| tree | 42dad7de829d7b5917fa12136a353ce06743c883 /src/Editor.cxx | |
| parent | 20184b70992e72b4ad26f93284f9654cb29c01e2 (diff) | |
| download | scintilla-mirror-08f3ce9f150063e4c0616db437ceef01e17679fe.tar.gz | |
Feature [feature-requests:#1581]. Simplify previous commit.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 6 |
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; } } } |
