Specify cols key when spawning pty shell (#1075)

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.
This commit is contained in:
Brian Reber 2016-12-07 08:28:41 -06:00 committed by Matheus Fernandes
parent d459112676
commit 7df5cbac08

View file

@ -36,7 +36,7 @@ module.exports = class Session extends EventEmitter {
try { try {
this.pty = spawn(shell || defaultShell, shellArgs || defaultShellArgs, { this.pty = spawn(shell || defaultShell, shellArgs || defaultShellArgs, {
columns, cols: columns,
rows, rows,
cwd, cwd,
env: getDecoratedEnv(baseEnv) env: getDecoratedEnv(baseEnv)