(doc, lineN)
| 6389 | // Get the line number of the start of the next visual line after |
| 6390 | // the given line. |
| 6391 | function visualLineEndNo(doc, lineN) { |
| 6392 | if (lineN > doc.lastLine()) return lineN; |
| 6393 | var line = getLine(doc, lineN), merged; |
| 6394 | if (!lineIsHidden(doc, line)) return lineN; |
| 6395 | while (merged = collapsedSpanAtEnd(line)) |
| 6396 | line = merged.find(1, true).line; |
| 6397 | return lineNo(line) + 1; |
| 6398 | } |
| 6399 | |
| 6400 | // Compute whether a line is hidden. Lines count as hidden when they |
| 6401 | // are part of a visual line that starts with another line, or when |
no test coverage detected