Add null check before cursor is drawn

This commit is contained in:
Daniel Imms
2017-09-28 21:23:27 -04:00
parent 313d1e6fec
commit 91d22e3d84
+3
View File
@@ -131,6 +131,9 @@ export class CursorRenderLayer extends BaseRenderLayer {
}
const charData = terminal.buffer.lines.get(cursorY)[terminal.buffer.x];
if (!charData) {
return;
}
if (!terminal.isFocused) {
this._clearCursor();