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

Function pushSelectionToHistory

static/mergely/lib/codemirror.js:7996–8000  ·  view source on GitHub ↗
(sel, dest)

Source from the content-addressed store, hash-verified

7994 }
7995
7996 function pushSelectionToHistory(sel, dest) {
7997 var top = lst(dest);
7998 if (!(top && top.ranges && top.equals(sel)))
7999 dest.push(sel);
8000 }
8001
8002 // Used to store marked span information in the history.
8003 function attachLocalSpans(doc, change, from, to) {

Callers 3

makeChangeFromHistoryFunction · 0.70
addChangeToHistoryFunction · 0.70
addSelectionToHistoryFunction · 0.70

Calls 1

lstFunction · 0.70

Tested by

no test coverage detected