MCPcopy
hub / github.com/witheve/Eve / visualLine

Function visualLine

src/codemirror.js:6591–6596  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

6589 // visual line. This finds the start of the visual line that the
6590 // given line is part of (usually that is the line itself).
6591 function visualLine(line) {
6592 var merged;
6593 while (merged = collapsedSpanAtStart(line))
6594 line = merged.find(-1, true).line;
6595 return line;
6596 }
6597
6598 // Returns an array of logical lines that continue the visual line
6599 // started by the argument, or undefined if there are no such lines.

Callers 8

drawSelectionRangeFunction · 0.85
codemirror.jsFile · 0.85
markTextFunction · 0.85
visualLineNoFunction · 0.85
heightAtLineFunction · 0.85
lineStartFunction · 0.85

Calls 2

collapsedSpanAtStartFunction · 0.85
findMethod · 0.65

Tested by

no test coverage detected