MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / visualLineNo

Function visualLineNo

static/libs/codemirror.js:799–803  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

797// Get the line number of the start of the visual line that the
798// given line number is part of.
799function visualLineNo(doc, lineN) {
800 var line = getLine(doc, lineN), vis = visualLine(line);
801 if (line == vis) { return lineN }
802 return lineNo(vis)
803}
804
805// Get the line number of the start of the next visual line after
806// 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