simplify JoinedCellData

This commit is contained in:
Jörg Breitbart
2019-05-05 21:48:35 +02:00
parent 4fd9b3f249
commit ffcdba8d5b
2 changed files with 14 additions and 9 deletions
+4 -1
View File
@@ -261,7 +261,10 @@ export abstract class BaseRenderLayer implements IRenderLayer {
*/
protected drawChars(terminal: ITerminal, cell: ICellData, x: number, y: number): void {
// skip cache right away if we draw in RGB or have joined cells
// skip cache right away if we draw in RGB
// Note: to avoid bad runtime JoinedCellData will be skipped
// in the cache handler (atlasDidDraw == false) itself and
// fall through to uncached later down below
if (cell.isFgRGB() || cell.isBgRGB() || cell instanceof JoinedCellData) {
this._drawUncachedChars(terminal, cell, x, y);
return;