MCPcopy Index your code
hub / github.com/csev/py4e / selectionEventCanBeMerged

Function selectionEventCanBeMerged

tools/pythonauto/static/codemirrorepl/codemirror.js:6628–6635  ·  view source on GitHub ↗
(doc, origin, prev, sel)

Source from the content-addressed store, hash-verified

6626 }
6627
6628 function selectionEventCanBeMerged(doc, origin, prev, sel) {
6629 var ch = origin.charAt(0);
6630 return ch == "*" ||
6631 ch == "+" &&
6632 prev.ranges.length == sel.ranges.length &&
6633 prev.somethingSelected() == sel.somethingSelected() &&
6634 new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500);
6635 }
6636
6637 // Called whenever the selection changes, sets the new selection as
6638 // the pending selection in the history, and pushes the old pending

Callers 1

addSelectionToHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected