(doc, lineN)
| 5425 | // Get the line number of the start of the next visual line after |
| 5426 | // the given line. |
| 5427 | function visualLineEndNo(doc, lineN) { |
| 5428 | if (lineN > doc.lastLine()) return lineN; |
| 5429 | var line = getLine(doc, lineN), merged; |
| 5430 | if (!lineIsHidden(doc, line)) return lineN; |
| 5431 | while (merged = collapsedSpanAtEnd(line)) |
| 5432 | line = merged.find(1, true).line; |
| 5433 | return lineNo(line) + 1; |
| 5434 | } |
| 5435 | |
| 5436 | // Compute whether a line is hidden. Lines count as hidden when they |
| 5437 | // are part of a visual line that starts with another line, or when |
no test coverage detected
searching dependent graphs…