(cm, lineN)
| 2589 | |
| 2590 | // Find a line view that corresponds to the given line number. |
| 2591 | function findViewForLine(cm, lineN) { |
| 2592 | if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo) |
| 2593 | return cm.display.view[findViewIndex(cm, lineN)]; |
| 2594 | var ext = cm.display.externalMeasured; |
| 2595 | if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size) |
| 2596 | return ext; |
| 2597 | } |
| 2598 | |
| 2599 | // Measurement can be split in two steps, the set-up work that |
| 2600 | // applies to the whole line, and the measurement of the actual |
no test coverage detected