Make sure DOM renderer doesn't render cells beyond cols

Fixes #1523
This commit is contained in:
Daniel Imms
2018-06-20 23:02:05 +10:00
parent f9bc3c511b
commit 086b2c04e0
3 changed files with 30 additions and 13 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ export class DomRenderer extends EventEmitter implements IRenderer {
const row = y + terminal.buffer.ydisp;
const lineData = terminal.buffer.lines.get(row);
rowElement.appendChild(this._rowFactory.createRow(lineData, row === cursorAbsoluteY, cursorX, terminal.charMeasure.width));
rowElement.appendChild(this._rowFactory.createRow(lineData, row === cursorAbsoluteY, cursorX, terminal.charMeasure.width, terminal.cols));
}
this._terminal.emit('refresh', {start, end});