This commit is contained in:
rebornix
2020-11-17 15:58:30 -08:00
parent e7ce16ceb0
commit 0109e4d504
@@ -88,7 +88,7 @@ export function truncatedArrayOfString(container: HTMLElement, outputs: string[]
if (buffer.getLineCount() < LINES_LIMIT) {
const lineCount = buffer.getLineCount();
const fullRange = new Range(1, 1, lineCount, buffer.getLineLength(lineCount));
const fullRange = new Range(1, 1, lineCount, buffer.getLineLastNonWhitespaceColumn(lineCount));
container.innerText = buffer.getValueInRange(fullRange, EndOfLinePreference.TextDefined);
return;