(cm)
| 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 |
no test coverage detected