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

Function pushSelectionToHistory

src/codemirror.js:8028–8032  ·  view source on GitHub ↗
(sel, dest)

Source from the content-addressed store, hash-verified

8026 }
8027
8028 function pushSelectionToHistory(sel, dest) {
8029 var top = lst(dest);
8030 if (!(top && top.ranges && top.equals(sel)))
8031 dest.push(sel);
8032 }
8033
8034 // Used to store marked span information in the history.
8035 function attachLocalSpans(doc, change, from, to) {

Callers 3

makeChangeFromHistoryFunction · 0.85
addChangeToHistoryFunction · 0.85
addSelectionToHistoryFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected