diff options
author | isaacs <i@izs.me> | 2012-02-24 18:51:22 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-24 18:51:22 -0800 |
commit | d4d45a175785832a4eb22e8ddb9887f8db66e782 (patch) | |
tree | 0836b9ae54f45745defa530a9d7640bff5a10a8f /deps/npm/lib/search.js | |
parent | 27a937bcf824093b7707a845c6376cbaae1df78f (diff) | |
download | node-new-d4d45a175785832a4eb22e8ddb9887f8db66e782.tar.gz |
Update npm to 1.1.2
Diffstat (limited to 'deps/npm/lib/search.js')
-rw-r--r-- | deps/npm/lib/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/search.js b/deps/npm/lib/search.js index 92f4319f58..213390eb08 100644 --- a/deps/npm/lib/search.js +++ b/deps/npm/lib/search.js @@ -137,7 +137,8 @@ function prettify (data, args) { , stdout = process.stdout , cols = !tty.isatty(stdout.fd) ? Infinity : stdout._handle ? stdout._handle.getWindowSize()[0] - : tty.getWindowSize()[1] + : process.stdout.getWindowSize()[0] + cols = (cols == 0) ? Infinity : cols } catch (ex) { cols = Infinity } // name, desc, author, keywords |