MCPcopy Create free account
hub / github.com/TruthHun/BookStack / setSelectionInner

Function setSelectionInner

static/mergely/lib/codemirror.js:2207–2217  ·  view source on GitHub ↗
(doc, sel)

Source from the content-addressed store, hash-verified

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

Callers 2

setSelectionNoUndoFunction · 0.70
reCheckSelectionFunction · 0.70

Calls 2

signalCursorActivityFunction · 0.70
signalLaterFunction · 0.70

Tested by

no test coverage detected