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

Function setSelectionReplaceHistory

src/codemirror.js:2184–2192  ·  view source on GitHub ↗
(doc, sel, options)

Source from the content-addressed store, hash-verified

2182 }
2183
2184 function setSelectionReplaceHistory(doc, sel, options) {
2185 var done = doc.history.done, last = lst(done);
2186 if (last && last.ranges) {
2187 done[done.length - 1] = sel;
2188 setSelectionNoUndo(doc, sel, options);
2189 } else {
2190 setSelection(doc, sel, options);
2191 }
2192 }
2193
2194 // Set a new selection.
2195 function setSelection(doc, sel, options) {

Callers 2

loadFileFunction · 0.85
codemirror.jsFile · 0.85

Calls 3

lstFunction · 0.85
setSelectionNoUndoFunction · 0.85
setSelectionFunction · 0.85

Tested by

no test coverage detected