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

Function clearSelectionEvents

tools/pythonauto/static/codemirrorepl/codemirror.js:6561–6567  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

6559 // Pop all selection events off the end of a history array. Stop at
6560 // a change event.
6561 function clearSelectionEvents(array) {
6562 while (array.length) {
6563 var last = lst(array);
6564 if (last.ranges) array.pop();
6565 else break;
6566 }
6567 }
6568
6569 // Find the top change event in the history. Pop off selection
6570 // events that are in the way.

Callers 2

lastChangeEventFunction · 0.85
addSelectionToHistoryFunction · 0.85

Calls 1

lstFunction · 0.70

Tested by

no test coverage detected