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

Function killRegion

src/codemirror.js:9086–9096  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

9084 }
9085
9086 function killRegion(cm) {
9087 if (cm.somethingSelected()) {
9088 var selections = cm.listSelections(), selection;
9089 var i = selections.length;
9090 while (i--) {
9091 selection = selections[i];
9092 kill(cm, selection.anchor, selection.head);
9093 }
9094 return true;
9095 }
9096 }
9097
9098 function addPrefix(cm, digit) {
9099 if (cm.state.emacsPrefix) {

Callers 1

codemirror.jsFile · 0.85

Calls 3

killFunction · 0.85
somethingSelectedMethod · 0.80
listSelectionsMethod · 0.80

Tested by

no test coverage detected