(cm)
| 886 | |
| 887 | // Find the longest line in the document. |
| 888 | function findMaxLine(cm) { |
| 889 | var d = cm.display, doc = cm.doc; |
| 890 | d.maxLine = getLine(doc, doc.first); |
| 891 | d.maxLineLength = lineLength(d.maxLine); |
| 892 | d.maxLineChanged = true; |
| 893 | doc.iter(function (line) { |
| 894 | var len = lineLength(line); |
| 895 | if (len > d.maxLineLength) { |
| 896 | d.maxLineLength = len; |
| 897 | d.maxLine = line; |
| 898 | } |
| 899 | }); |
| 900 | } |
| 901 | |
| 902 | // BIDI HELPERS |
| 903 |
no test coverage detected