MCPcopy Create free account
hub / github.com/TruthHun/BookStack / visualLineContinued

Function visualLineContinued

static/mergely/lib/codemirror.js:6575–6582  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

6573 // Returns an array of logical lines that continue the visual line
6574 // started by the argument, or undefined if there are no such lines.
6575 function visualLineContinued(line) {
6576 var merged, lines;
6577 while (merged = collapsedSpanAtEnd(line)) {
6578 line = merged.find(1, true).line;
6579 (lines || (lines = [])).push(line);
6580 }
6581 return lines;
6582 }
6583
6584 // Get the line number of the start of the visual line that the
6585 // given line number is part of.

Callers 1

LineViewFunction · 0.70

Calls 1

collapsedSpanAtEndFunction · 0.70

Tested by

no test coverage detected