(cm)
| 286 | } |
| 287 | |
| 288 | function computeMaxLength(cm) { |
| 289 | var d = cm.display, doc = cm.doc; |
| 290 | d.maxLine = getLine(doc, doc.first); |
| 291 | d.maxLineLength = lineLength(doc, d.maxLine); |
| 292 | d.maxLineChanged = true; |
| 293 | doc.iter(function(line) { |
| 294 | var len = lineLength(doc, line); |
| 295 | if (len > d.maxLineLength) { |
| 296 | d.maxLineLength = len; |
| 297 | d.maxLine = line; |
| 298 | } |
| 299 | }); |
| 300 | } |
| 301 | |
| 302 | // Make sure the gutters options contains the element |
| 303 | // "CodeMirror-linenumbers" when the lineNumbers option is true. |
no test coverage detected