Skip to content

Commit d3ba3a2

Browse files
committed
Fix problem with drag-select not clearning multiple cursors
Issue #2486
1 parent afcbdb6 commit d3ba3a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/codemirror.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,6 +2644,7 @@
26442644
if (!addNew) {
26452645
ourIndex = 0;
26462646
setSelection(doc, new Selection([ourRange], 0), sel_mouse);
2647+
startSel = doc.sel;
26472648
} else if (ourIndex > -1) {
26482649
replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);
26492650
} else {

0 commit comments

Comments
 (0)