(cm)
| 300 | } |
| 301 | |
| 302 | function computeMaxLength(cm) { |
| 303 | var d = cm.display, doc = cm.doc; |
| 304 | d.maxLine = getLine(doc, doc.first); |
| 305 | d.maxLineLength = lineLength(doc, d.maxLine); |
| 306 | d.maxLineChanged = true; |
| 307 | doc.iter(function(line) { |
| 308 | var len = lineLength(doc, line); |
| 309 | if (len > d.maxLineLength) { |
| 310 | d.maxLineLength = len; |
| 311 | d.maxLine = line; |
| 312 | } |
| 313 | }); |
| 314 | } |
| 315 | |
| 316 | // Make sure the gutters options contains the element |
| 317 | // "CodeMirror-linenumbers" when the lineNumbers option is true. |
no test coverage detected