(doc, lineN)
| 1522 | // Get the line number of the start of the visual line that the |
| 1523 | // given line number is part of. |
| 1524 | function visualLineNo(doc, lineN) { |
| 1525 | var line = getLine(doc, lineN), |
| 1526 | vis = visualLine(line) |
| 1527 | if (line == vis) { |
| 1528 | return lineN |
| 1529 | } |
| 1530 | return lineNo(vis) |
| 1531 | } |
| 1532 | |
| 1533 | // Get the line number of the start of the next visual line after |
| 1534 | // the given line. |
no test coverage detected