MCPcopy
hub / github.com/agentejo/cockpit / findMaxLine

Function findMaxLine

assets/lib/codemirror/lib/codemirror.js:1666–1678  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1664
1665 // Find the longest line in the document.
1666 function findMaxLine(cm) {
1667 var d = cm.display, doc = cm.doc;
1668 d.maxLine = getLine(doc, doc.first);
1669 d.maxLineLength = lineLength(d.maxLine);
1670 d.maxLineChanged = true;
1671 doc.iter(function (line) {
1672 var len = lineLength(line);
1673 if (len > d.maxLineLength) {
1674 d.maxLineLength = len;
1675 d.maxLine = line;
1676 }
1677 });
1678 }
1679
1680 // LINE DATA STRUCTURE
1681

Callers 3

endOperation_R1Function · 0.85
attachDocFunction · 0.85
wrappingChangedFunction · 0.85

Calls 2

getLineFunction · 0.85
lineLengthFunction · 0.70

Tested by

no test coverage detected