(doc, lineN)
| 6616 | // Get the line number of the start of the next visual line after |
| 6617 | // the given line. |
| 6618 | function visualLineEndNo(doc, lineN) { |
| 6619 | if (lineN > doc.lastLine()) return lineN; |
| 6620 | var line = getLine(doc, lineN), merged; |
| 6621 | if (!lineIsHidden(doc, line)) return lineN; |
| 6622 | while (merged = collapsedSpanAtEnd(line)) |
| 6623 | line = merged.find(1, true).line; |
| 6624 | return lineNo(line) + 1; |
| 6625 | } |
| 6626 | |
| 6627 | // Compute whether a line is hidden. Lines count as hidden when they |
| 6628 | // are part of a visual line that starts with another line, or when |
no test coverage detected