MCPcopy
hub / github.com/witheve/Eve / visualLineEndNo

Function visualLineEndNo

src/codemirror.js:6618–6625  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

6616 // Get the line number of the start of the next visual line after
6617 // the given line.
6618 function visualLineEndNo(doc, lineN) {
6619 if (lineN > doc.lastLine()) return lineN;
6620 var line = getLine(doc, lineN), merged;
6621 if (!lineIsHidden(doc, line)) return lineN;
6622 while (merged = collapsedSpanAtEnd(line))
6623 line = merged.find(1, true).line;
6624 return lineNo(line) + 1;
6625 }
6626
6627 // Compute whether a line is hidden. Lines count as hidden when they
6628 // are part of a visual line that starts with another line, or when

Callers 2

updateDisplayIfNeededFunction · 0.85
regChangeFunction · 0.85

Calls 6

getLineFunction · 0.85
lineIsHiddenFunction · 0.85
collapsedSpanAtEndFunction · 0.85
lineNoFunction · 0.85
lastLineMethod · 0.80
findMethod · 0.65

Tested by

no test coverage detected