MCPcopy Create free account
hub / github.com/breck7/scroll / setSelectionInner

Function setSelectionInner

external/.scrollLibs.js:6975–6988  ·  view source on GitHub ↗
(doc, sel)

Source from the content-addressed store, hash-verified

6973 }
6974
6975 function setSelectionInner(doc, sel) {
6976 if (sel.equals(doc.sel)) {
6977 return
6978 }
6979
6980 doc.sel = sel
6981
6982 if (doc.cm) {
6983 doc.cm.curOp.updateInput = 1
6984 doc.cm.curOp.selectionChanged = true
6985 signalCursorActivity(doc.cm)
6986 }
6987 signalLater(doc, "cursorActivity", doc)
6988 }
6989
6990 // Verify that the selection does not partially select any atomic
6991 // marked ranges.

Callers 2

setSelectionNoUndoFunction · 0.85
reCheckSelectionFunction · 0.85

Calls 2

signalCursorActivityFunction · 0.85
signalLaterFunction · 0.85

Tested by

no test coverage detected