Reduce size of model to 3 by removing attr

This commit is contained in:
Daniel
2019-11-09 22:56:42 -08:00
parent a2bd0e8eaa
commit 2b5d229aab
6 changed files with 14 additions and 26 deletions
@@ -260,9 +260,6 @@ export class GlyphRenderer {
let line: IBufferLine | undefined;
for (let x = startCol; x < endCol; x++) {
const offset = (y * this._terminal.cols + x) * INDICIES_PER_CELL;
// Because the cache uses attr as a lookup key it needs to contain the selection colors as well
let attr = model.cells[offset + 1];
attr = attr & ~0x3ffff | bg << 9 | fg;
const code = model.cells[offset];
if (code & COMBINED_CHAR_BIT_MASK) {
if (!line) {