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

Function setSelectionInner

static/editor.md/lib/codemirror/lib/codemirror.js:2110–2120  ·  view source on GitHub ↗
(doc, sel)

Source from the content-addressed store, hash-verified

2108 }
2109
2110 function setSelectionInner(doc, sel) {
2111 if (sel.equals(doc.sel)) return;
2112
2113 doc.sel = sel;
2114
2115 if (doc.cm) {
2116 doc.cm.curOp.updateInput = doc.cm.curOp.selectionChanged = true;
2117 signalCursorActivity(doc.cm);
2118 }
2119 signalLater(doc, "cursorActivity", doc);
2120 }
2121
2122 // Verify that the selection does not partially select any atomic
2123 // marked ranges.

Callers 2

setSelectionNoUndoFunction · 0.70
reCheckSelectionFunction · 0.70

Calls 2

signalCursorActivityFunction · 0.70
signalLaterFunction · 0.70

Tested by

no test coverage detected