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

Function isWholeLineUpdate

src/codemirror.js:7182–7185  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

7180 // are treated specially, in order to make the association of line
7181 // widgets and marker elements with the text behave more intuitive.
7182 function isWholeLineUpdate(doc, change) {
7183 return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
7184 (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
7185 }
7186
7187 // Perform a change on the document data structure.
7188 function updateDoc(doc, change, markedSpans, estimateHeight) {

Callers 2

updateDocFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected