MCPcopy Create free account
hub / github.com/witheve/Eve / replaceOneSelection

Function replaceOneSelection

src/codemirror.js:2154–2158  ·  view source on GitHub ↗
(doc, i, range, options)

Source from the content-addressed store, hash-verified

2152
2153 // Updates a single range in the selection.
2154 function replaceOneSelection(doc, i, range, options) {
2155 var ranges = doc.sel.ranges.slice(0);
2156 ranges[i] = range;
2157 setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);
2158 }
2159
2160 // Reset the selection to a single range.
2161 function setSimpleSelection(doc, anchor, head, options) {

Callers 3

leftButtonSelectFunction · 0.85
indentLineFunction · 0.85
codemirror.jsFile · 0.85

Calls 2

setSelectionFunction · 0.85
normalizeSelectionFunction · 0.85

Tested by

no test coverage detected