MCPcopy Index your code
hub / github.com/csev/py4e / visualLineNo

Function visualLineNo

tools/pythonauto/static/codemirrorepl/codemirror.js:5377–5381  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

5375 // Get the line number of the start of the visual line that the
5376 // given line number is part of.
5377 function visualLineNo(doc, lineN) {
5378 var line = getLine(doc, lineN), vis = visualLine(line);
5379 if (line == vis) return lineN;
5380 return lineNo(vis);
5381 }
5382 // Get the line number of the start of the next visual line after
5383 // the given line.
5384 function visualLineEndNo(doc, lineN) {

Callers 3

updateDisplayInnerFunction · 0.85
regChangeFunction · 0.85
viewCuttingPointFunction · 0.85

Calls 3

getLineFunction · 0.70
visualLineFunction · 0.70
lineNoFunction · 0.70

Tested by

no test coverage detected