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

Function visualLineNo

static/editor.md/lib/codemirror/lib/codemirror.js:6384–6388  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

6382 // Get the line number of the start of the visual line that the
6383 // given line number is part of.
6384 function visualLineNo(doc, lineN) {
6385 var line = getLine(doc, lineN), vis = visualLine(line);
6386 if (line == vis) return lineN;
6387 return lineNo(vis);
6388 }
6389 // Get the line number of the start of the next visual line after
6390 // the given line.
6391 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