Skip to content

Commit

Permalink
Merge branch 'master' into baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jan 1, 2019
2 parents 9b0b323 + 68b2b79 commit dbd9b2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/renderer/dom/DomRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,11 @@ export class DomRenderer extends EventEmitter implements IRenderer {
return;
}
const span = <HTMLElement>row.children[x];
span.style.textDecoration = enabled ? 'underline' : 'none';
x = (x + 1) % cols;
if (x === 0) {
if (span) {
span.style.textDecoration = enabled ? 'underline' : 'none';
}
if (++x >= cols) {
x = 0;
y++;
}
}
Expand Down

0 comments on commit dbd9b2a

Please sign in to comment.