Fix non-default backgrounds on left cell of wide/overlapping chars

Fixes #1031
This commit is contained in:
Daniel Imms
2017-10-05 20:30:09 -07:00
parent 108534a4fe
commit 356a14bb16
2 changed files with 5 additions and 5 deletions
-5
View File
@@ -224,11 +224,6 @@ export abstract class BaseRenderLayer implements IRenderLayer {
* @param bold Whether the text is bold.
*/
protected drawChar(terminal: ITerminal, char: string, code: number, width: number, x: number, y: number, fg: number, bg: number, bold: boolean): void {
// Clear the cell next to this character if it's wide
if (width === 2) {
this.clearCells(x + 1, y, 1, 1);
}
let colorIndex = 0;
if (fg < 256) {
colorIndex = fg + 2;
+5
View File
@@ -146,6 +146,11 @@ export class TextRenderLayer extends BaseRenderLayer {
}
}
// Clear the cell next to this character if it's wide
if (width === 2) {
this.clearCells(x + 1, y, 1, 1);
}
// Draw background
if (bg < 256) {
this._ctx.save();