(doc, line)
| 1592 | // are part of a visual line that starts with another line, or when |
| 1593 | // they are entirely covered by collapsed, non-widget span. |
| 1594 | function lineIsHidden(doc, line) { |
| 1595 | var sps = sawCollapsedSpans && line.markedSpans; |
| 1596 | if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) { |
| 1597 | sp = sps[i]; |
| 1598 | if (!sp.marker.collapsed) { continue } |
| 1599 | if (sp.from == null) { return true } |
| 1600 | if (sp.marker.widgetNode) { continue } |
| 1601 | if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) |
| 1602 | { return true } |
| 1603 | } } |
| 1604 | } |
| 1605 | function lineIsHiddenInner(doc, line, span) { |
| 1606 | if (span.to == null) { |
| 1607 | var end = span.marker.find(1, true); |
no test coverage detected