Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #2052. Readline get win cols correctly

  • Loading branch information...
commit 2d13cdfd2ab4ef00f0140aa02313fae98e47ac25 1 parent efb833f
@ry ry authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/readline.js
View
4 lib/readline.js
@@ -96,12 +96,12 @@ function Interface(input, output, completer) {
this.historyIndex = -1;
var winSize = output.getWindowSize();
- exports.columns = winSize[1];
+ exports.columns = winSize[0];
if (process.listeners('SIGWINCH').length === 0) {
process.on('SIGWINCH', function() {
var winSize = output.getWindowSize();
- exports.columns = winSize[1];
+ exports.columns = winSize[0];
});
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.