From 1f1e9e397a35cd8bc5ce70f46a34f56a663a1599 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Sun, 29 Jan 2023 12:54:30 +0530 Subject: [PATCH] fix offset --- addons/xterm-addon-canvas/src/BaseRenderLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts index 04b40cca97..94889a65da 100644 --- a/addons/xterm-addon-canvas/src/BaseRenderLayer.ts +++ b/addons/xterm-addon-canvas/src/BaseRenderLayer.ts @@ -402,7 +402,7 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer glyph.size.x, glyph.size.y ); - glyphsOffsetX += glyph.size.x; + glyphsOffsetX += glyph.size.x - glyph.offset.x; this._ctx.restore(); } }