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

Function visualLineNo

external/.scrollLibs.js:1524–1531  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

1522 // Get the line number of the start of the visual line that the
1523 // given line number is part of.
1524 function visualLineNo(doc, lineN) {
1525 var line = getLine(doc, lineN),
1526 vis = visualLine(line)
1527 if (line == vis) {
1528 return lineN
1529 }
1530 return lineNo(vis)
1531 }
1532
1533 // Get the line number of the start of the next visual line after
1534 // the given line.

Callers 3

regChangeFunction · 0.85
viewCuttingPointFunction · 0.85
updateDisplayIfNeededFunction · 0.85

Calls 3

getLineFunction · 0.85
visualLineFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected