Skip to content

Commit

Permalink
Make ctrl-double/triple-click work again
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Dec 19, 2014
1 parent 1ace5ad commit 965b8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -2921,7 +2921,7 @@
ourIndex = ranges.length;
setSelection(doc, normalizeSelection(ranges.concat([ourRange]), ourIndex),
{scroll: false, origin: "*mouse"});
} else if (ranges.length > 1 && ranges[ourIndex].empty()) {
} else if (ranges.length > 1 && ranges[ourIndex].empty() && type == "single") {
setSelection(doc, normalizeSelection(ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0));
startSel = doc.sel;
} else {
Expand Down

0 comments on commit 965b8dd

Please sign in to comment.