MCPcopy
hub / github.com/witheve/Eve / killTo

Function killTo

src/codemirror.js:9077–9084  ·  view source on GitHub ↗
(cm, by, dir)

Source from the content-addressed store, hash-verified

9075 }
9076
9077 function killTo(cm, by, dir) {
9078 var selections = cm.listSelections(), cursor;
9079 var i = selections.length;
9080 while (i--) {
9081 cursor = selections[i].head;
9082 kill(cm, cursor, findEnd(cm, cursor, by, dir), true);
9083 }
9084 }
9085
9086 function killRegion(cm) {
9087 if (cm.somethingSelected()) {

Callers 1

codemirror.jsFile · 0.85

Calls 3

killFunction · 0.85
findEndFunction · 0.85
listSelectionsMethod · 0.80

Tested by

no test coverage detected