(doc, line)
| 6401 | // are part of a visual line that starts with another line, or when |
| 6402 | // they are entirely covered by collapsed, non-widget span. |
| 6403 | function lineIsHidden(doc, line) { |
| 6404 | var sps = sawCollapsedSpans && line.markedSpans; |
| 6405 | if (sps) for (var sp, i = 0; i < sps.length; ++i) { |
| 6406 | sp = sps[i]; |
| 6407 | if (!sp.marker.collapsed) continue; |
| 6408 | if (sp.from == null) return true; |
| 6409 | if (sp.marker.widgetNode) continue; |
| 6410 | if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp)) |
| 6411 | return true; |
| 6412 | } |
| 6413 | } |
| 6414 | function lineIsHiddenInner(doc, line, span) { |
| 6415 | if (span.to == null) { |
| 6416 | var end = span.marker.find(1, true); |
no test coverage detected