diff options
author | isaacs <i@izs.me> | 2012-02-24 18:52:17 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-24 18:52:17 -0800 |
commit | ca0986fbd1a8ade47f3160853a257b6ae83a2151 (patch) | |
tree | 7a86f9b6ff5b046d800fab15d51d220b2b3b476e /deps/npm/lib/search.js | |
parent | e004721b482198fb9558f920f8101b27fb0bcb7c (diff) | |
download | android-node-v8-ca0986fbd1a8ade47f3160853a257b6ae83a2151.tar.gz android-node-v8-ca0986fbd1a8ade47f3160853a257b6ae83a2151.tar.bz2 android-node-v8-ca0986fbd1a8ade47f3160853a257b6ae83a2151.zip |
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 |