MCPcopy
hub / github.com/csev/py4e / isWholeLineUpdate

Function isWholeLineUpdate

tools/pythonauto/static/codemirrorepl/codemirror.js:5871–5874  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

5869 // are treated specially, in order to make the association of line
5870 // widgets and marker elements with the text behave more intuitive.
5871 function isWholeLineUpdate(doc, change) {
5872 return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == "" &&
5873 (!doc.cm || doc.cm.options.wholeLineUpdateBefore);
5874 }
5875
5876 // Perform a change on the document data structure.
5877 function updateDoc(doc, change, markedSpans, estimateHeight) {

Callers 2

updateDocFunction · 0.85

Calls 1

lstFunction · 0.70

Tested by

no test coverage detected