MCPcopy Create free account
hub / github.com/breck7/scroll / visualLine

Function visualLine

external/.scrollLibs.js:1495–1501  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1493 // visual line. This finds the start of the visual line that the
1494 // given line is part of (usually that is the line itself).
1495 function visualLine(line) {
1496 var merged
1497 while ((merged = collapsedSpanAtStart(line))) {
1498 line = merged.find(-1, true).line
1499 }
1500 return line
1501 }
1502
1503 function visualLineEnd(line) {
1504 var merged

Callers 8

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

Calls 2

collapsedSpanAtStartFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected