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

Function visualLineNo

static/mergely/lib/codemirror.js:6586–6590  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

6584 // Get the line number of the start of the visual line that the
6585 // given line number is part of.
6586 function visualLineNo(doc, lineN) {
6587 var line = getLine(doc, lineN), vis = visualLine(line);
6588 if (line == vis) return lineN;
6589 return lineNo(vis);
6590 }
6591 // Get the line number of the start of the next visual line after
6592 // the given line.
6593 function visualLineEndNo(doc, lineN) {

Callers 3

updateDisplayIfNeededFunction · 0.70
regChangeFunction · 0.70
viewCuttingPointFunction · 0.70

Calls 3

getLineFunction · 0.70
visualLineFunction · 0.70
lineNoFunction · 0.70

Tested by

no test coverage detected