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

Function visualLineNo

src/codemirror.js:6611–6615  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

6609 // Get the line number of the start of the visual line that the
6610 // given line number is part of.
6611 function visualLineNo(doc, lineN) {
6612 var line = getLine(doc, lineN), vis = visualLine(line);
6613 if (line == vis) return lineN;
6614 return lineNo(vis);
6615 }
6616 // Get the line number of the start of the next visual line after
6617 // the given line.
6618 function visualLineEndNo(doc, lineN) {

Callers 3

updateDisplayIfNeededFunction · 0.85
regChangeFunction · 0.85
viewCuttingPointFunction · 0.85

Calls 3

getLineFunction · 0.85
visualLineFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected