MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / changeEnd

Function changeEnd

static/js/codemirror/codemirror.js:2038–2041  ·  view source on GitHub ↗
(change)

Source from the content-addressed store, hash-verified

2036 // UPDATING
2037
2038 function changeEnd(change) {
2039 return Pos(change.from.line + change.text.length - 1,
2040 lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0));
2041 }
2042
2043 // Make sure a position will be valid after the given change.
2044 function clipPostChange(doc, change, pos) {

Callers 3

computeSelAfterChangeFunction · 0.85
historyChangeFromChangeFunction · 0.85
addToHistoryFunction · 0.85

Calls 2

PosFunction · 0.85
lstFunction · 0.85

Tested by

no test coverage detected