MCPcopy Create free account
hub / github.com/sql-js/sql.js / visualLineEndNo

Function visualLineEndNo

GUI/codemirror/lib/codemirror.js:5427–5434  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

5425 // Get the line number of the start of the next visual line after
5426 // the given line.
5427 function visualLineEndNo(doc, lineN) {
5428 if (lineN > doc.lastLine()) return lineN;
5429 var line = getLine(doc, lineN), merged;
5430 if (!lineIsHidden(doc, line)) return lineN;
5431 while (merged = collapsedSpanAtEnd(line))
5432 line = merged.find(1, true).line;
5433 return lineNo(line) + 1;
5434 }
5435
5436 // Compute whether a line is hidden. Lines count as hidden when they
5437 // are part of a visual line that starts with another line, or when

Callers 2

updateDisplayInnerFunction · 0.85
regChangeFunction · 0.85

Calls 4

getLineFunction · 0.85
lineIsHiddenFunction · 0.85
collapsedSpanAtEndFunction · 0.85
lineNoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…