MCPcopy
hub / github.com/DHTMLX/gantt / visualLineEndNo

Function visualLineEndNo

samples/common/codehighlight/codemirror.js:1582–1589  ·  view source on GitHub ↗
(doc, lineN)

Source from the content-addressed store, hash-verified

1580 // Get the line number of the start of the next visual line after
1581 // the given line.
1582 function visualLineEndNo(doc, lineN) {
1583 if (lineN > doc.lastLine()) { return lineN }
1584 var line = getLine(doc, lineN), merged;
1585 if (!lineIsHidden(doc, line)) { return lineN }
1586 while (merged = collapsedSpanAtEnd(line))
1587 { line = merged.find(1, true).line; }
1588 return lineNo(line) + 1
1589 }
1590
1591 // Compute whether a line is hidden. Lines count as hidden when they
1592 // are part of a visual line that starts with another line, or when

Callers 2

regChangeFunction · 0.85
updateDisplayIfNeededFunction · 0.85

Calls 4

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

Tested by

no test coverage detected