MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isWholeLineUpdate

Function isWholeLineUpdate

lib/web/CodeMirror/src/model/document_data.js:17–20  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

15// are treated specially, in order to make the association of line
16// widgets and marker elements with the text behave more intuitive.
17export function isWholeLineUpdate(doc, change) {
18 return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
19 (!doc.cm || doc.cm.options.wholeLineUpdateBefore)
20}
21
22// Perform a change on the document data structure.
23export function updateDoc(doc, change, markedSpans, estimateHeight) {

Callers 2

updateDocFunction · 0.70

Calls 1

lstFunction · 0.90

Tested by

no test coverage detected