(maxVisibleLines?: number)
| 166 | } |
| 167 | |
| 168 | getViewportCharEnd(maxVisibleLines?: number): number { |
| 169 | const startLine = this.getViewportStartLine(maxVisibleLines) |
| 170 | const allLines = this.measuredText.getWrappedLines() |
| 171 | if (maxVisibleLines === undefined || maxVisibleLines <= 0) |
| 172 | return this.text.length |
| 173 | const endLine = Math.min(allLines.length, startLine + maxVisibleLines) |
| 174 | if (endLine >= allLines.length) return this.text.length |
| 175 | return allLines[endLine]?.startOffset ?? this.text.length |
| 176 | } |
| 177 | |
| 178 | render( |
| 179 | cursorChar: string, |
no test coverage detected