MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isWholeLineUpdate

Function isWholeLineUpdate

static/editor.md/lib/codemirror/lib/codemirror.js:6939–6942  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

6937 // are treated specially, in order to make the association of line
6938 // widgets and marker elements with the text behave more intuitive.
6939 function isWholeLineUpdate(doc, change) {
6940 return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
6941 (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
6942 }
6943
6944 // Perform a change on the document data structure.
6945 function updateDoc(doc, change, markedSpans, estimateHeight) {

Callers 2

updateDocFunction · 0.70

Calls 1

lstFunction · 0.70

Tested by

no test coverage detected