Skip to content

Commit 1f1e9e3

Browse files
fix offset
1 parent 70bbd12 commit 1f1e9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer
402402
glyph.size.x,
403403
glyph.size.y
404404
);
405-
glyphsOffsetX += glyph.size.x;
405+
glyphsOffsetX += glyph.size.x - glyph.offset.x;
406406
this._ctx.restore();
407407
}
408408
}

0 commit comments

Comments
 (0)