(doc, lineN)
| 1580 | // Get the line number of the start of the next visual line after |
| 1581 | // the given line. |
| 1582 | function visualLineEndNo(doc, lineN) { |
| 1583 | if (lineN > doc.lastLine()) { return lineN } |
| 1584 | var line = getLine(doc, lineN), merged; |
| 1585 | if (!lineIsHidden(doc, line)) { return lineN } |
| 1586 | while (merged = collapsedSpanAtEnd(line)) |
| 1587 | { line = merged.find(1, true).line; } |
| 1588 | return lineNo(line) + 1 |
| 1589 | } |
| 1590 | |
| 1591 | // Compute whether a line is hidden. Lines count as hidden when they |
| 1592 | // are part of a visual line that starts with another line, or when |
no test coverage detected