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