MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / visualLineNo

Function visualLineNo

lib/web/CodeMirror/src/line/spans.js:281–285  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

279// Get the line number of the start of the visual line that the
280// given line number is part of.
281export function visualLineNo(doc, lineN) {
282 let line = getLine(doc, lineN), vis = visualLine(line)
283 if (line == vis) return lineN
284 return lineNo(vis)
285}
286
287// Get the line number of the start of the next visual line after
288// the given line.

Callers 3

updateDisplayIfNeededFunction · 0.90
regChangeFunction · 0.90
viewCuttingPointFunction · 0.90

Calls 3

getLineFunction · 0.90
lineNoFunction · 0.90
visualLineFunction · 0.70

Tested by

no test coverage detected