MCPcopy Create free account
hub / github.com/sql-js/sql.js / pushSelectionToHistory

Function pushSelectionToHistory

GUI/codemirror/lib/codemirror.js:6713–6717  ·  view source on GitHub ↗
(sel, dest)

Source from the content-addressed store, hash-verified

6711 }
6712
6713 function pushSelectionToHistory(sel, dest) {
6714 var top = lst(dest);
6715 if (!(top && top.ranges && top.equals(sel)))
6716 dest.push(sel);
6717 }
6718
6719 // Used to store marked span information in the history.
6720 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…