diff --git a/app/lib/components/term.js b/app/lib/components/term.js index 32af8f5b..49c9ca3d 100644 --- a/app/lib/components/term.js +++ b/app/lib/components/term.js @@ -38,7 +38,7 @@ export default class Term extends Component { const io = this.term.io.push(); io.onVTKeystroke = io.sendString = props.onData; io.onTerminalResize = (cols, rows) => { - if (cols !== this.props.cols && rows !== this.props.rows) { + if (cols !== this.props.cols || rows !== this.props.rows) { props.onResize(cols, rows); } };