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

Function visualLineContinued

static/editor.md/lib/codemirror/lib/codemirror.js:6373–6380  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

6371 // Returns an array of logical lines that continue the visual line
6372 // started by the argument, or undefined if there are no such lines.
6373 function visualLineContinued(line) {
6374 var merged, lines;
6375 while (merged = collapsedSpanAtEnd(line)) {
6376 line = merged.find(1, true).line;
6377 (lines || (lines = [])).push(line);
6378 }
6379 return lines;
6380 }
6381
6382 // Get the line number of the start of the visual line that the
6383 // given line number is part of.

Callers 1

LineViewFunction · 0.70

Calls 1

collapsedSpanAtEndFunction · 0.70

Tested by

no test coverage detected