Fix fg used by selection in webgl again

See #2650
This commit is contained in:
Daniel Imms
2020-02-04 07:41:04 -08:00
parent 1b4a3475e8
commit b50b6ccb8b
@@ -284,7 +284,7 @@ export class GlyphRenderer {
line = terminal.buffer.getLine(row);
}
const chars = line!.getCell(x)!.getChars();
this._updateCell(this._vertices.selectionAttributes, x, y, model.cells[offset], bg, model.cells[offset + RENDER_MODEL_FG_OFFSET], chars);
this._updateCell(this._vertices.selectionAttributes, x, y, model.cells[offset], bg, fg, chars);
} else {
this._updateCell(this._vertices.selectionAttributes, x, y, model.cells[offset], bg, fg);
}