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

Function setSelectionInner

src/codemirror.js:2212–2222  ·  view source on GitHub ↗
(doc, sel)

Source from the content-addressed store, hash-verified

2210 }
2211
2212 function setSelectionInner(doc, sel) {
2213 if (sel.equals(doc.sel)) return;
2214
2215 doc.sel = sel;
2216
2217 if (doc.cm) {
2218 doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true;
2219 signalCursorActivity(doc.cm);
2220 }
2221 signalLater(doc, "cursorActivity", doc);
2222 }
2223
2224 // Verify that the selection does not partially select any atomic
2225 // marked ranges.

Callers 2

setSelectionNoUndoFunction · 0.85
reCheckSelectionFunction · 0.85

Calls 2

signalCursorActivityFunction · 0.85
signalLaterFunction · 0.85

Tested by

no test coverage detected