MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / isWholeLineUpdate

Function isWholeLineUpdate

static/libs/codemirror.js:4644–4647  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

4642// are treated specially, in order to make the association of line
4643// widgets and marker elements with the text behave more intuitive.
4644function isWholeLineUpdate(doc, change) {
4645 return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
4646 (!doc.cm || doc.cm.options.wholeLineUpdateBefore)
4647}
4648
4649// Perform a change on the document data structure.
4650function updateDoc(doc, change, markedSpans, estimateHeight$$1) {

Callers 2

updateDocFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected