Merge pull request #4086 from Tyriar/padding_powerline

Only remove padding from restricted powerline chars
This commit is contained in:
Daniel Imms
2022-08-30 08:53:03 -07:00
committed by GitHub
@@ -404,7 +404,7 @@ export class WebglCharAtlas implements IDisposable {
this._tmpCtx.fillStyle = foregroundColor.css;
// For powerline glyphs left/top padding is excluded (https://github.com/microsoft/vscode/issues/120129)
const padding = powerlineGlyph ? 0 : TMP_CANVAS_GLYPH_PADDING * 2;
const padding = restrictedPowerlineGlyph ? 0 : TMP_CANVAS_GLYPH_PADDING * 2;
// Draw custom characters if applicable
let customGlyph = false;