From 7df5cbac0832ab2e14b20d9fb3a7e371bf2018ae Mon Sep 17 00:00:00 2001 From: Brian Reber Date: Wed, 7 Dec 2016 08:28:41 -0600 Subject: [PATCH] Specify cols key when spawning pty shell (#1075) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The column size param in pty.js is named ‘cols’, but the shorthand notation treats it as ‘columns’, causing the column count to not be correct. --- app/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/session.js b/app/session.js index 3b9f08f7..58dbf629 100644 --- a/app/session.js +++ b/app/session.js @@ -36,7 +36,7 @@ module.exports = class Session extends EventEmitter { try { this.pty = spawn(shell || defaultShell, shellArgs || defaultShellArgs, { - columns, + cols: columns, rows, cwd, env: getDecoratedEnv(baseEnv)