Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Dec 9, 2020
1 parent 82974e8 commit bdd8903
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.getLineLastNonWhitespaceColumn(lineCount));
const fullRange = new Range(1, 1, lineCount, Math.max(1, buffer.getLineLastNonWhitespaceColumn(lineCount)));

container.innerText = buffer.getValueInRange(fullRange, EndOfLinePreference.TextDefined);
return;
Expand Down

0 comments on commit bdd8903

Please sign in to comment.