From 81bfbd600617ba80b3003296a466531fa48ee4b0 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 14 Jul 2016 15:02:13 -0700 Subject: [PATCH] term: fix resize events --- app/lib/components/term.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } };