Skip to content

Commit 0b56b56

Browse files
committed
skipping renderer on NUL and SP
1 parent b829ad8 commit 0b56b56

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

addons/xterm-addon-canvas/src/TextRenderLayer.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ export class TextRenderLayer extends BaseRenderLayer {
9595
continue;
9696
}
9797

98+
// exit early for NULL and SP
99+
const code = cell.getCode();
100+
if (code === 0 || code === 32) {
101+
continue;
102+
}
103+
98104
// Process any joined character ranges as needed. Because of how the
99105
// ranges are produced, we know that they are valid for the characters
100106
// and attributes of our input.

0 commit comments

Comments
 (0)