Skip to content

Commit

Permalink
Fix error telemetry issue
Browse files Browse the repository at this point in the history
Fixes #102558
  • Loading branch information
Tyriar committed Jul 15, 2020
1 parent 91a3e6b commit f33cb5c
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -94,13 +94,16 @@ export function convertBufferRangeToViewport(bufferRange: IBufferRange, viewport
}

export function getXtermLineContent(buffer: IBuffer, lineStart: number, lineEnd: number, cols: number): string {
let line = '';
let content = '';
for (let i = lineStart; i <= lineEnd; i++) {
// Make sure only 0 to cols are considered as resizing when windows mode is enabled will
// retain buffer data outside of the terminal width as reflow is disabled.
line += buffer.getLine(i)!.translateToString(true, 0, cols);
const line = buffer.getLine(i);
if (line) {
content += line.translateToString(true, 0, cols);
}
}
return line;
return content;
}

export function positionIsInRange(position: IBufferCellPosition, range: IBufferRange): boolean {
Expand Down

0 comments on commit f33cb5c

Please sign in to comment.