Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-10-12 21:06:18 +0400
committerisaacs <i@izs.me>2011-10-12 21:06:18 +0400
commit24764227e76e404e4695948da84e3f2a47633e83 (patch)
treebef55bd16dfa72e046bac50a358039db024e177f /lib/search.js
parentf70e3d4baca86678c2dd9f94bfb7f87328de349d (diff)
typo in search.js
Diffstat (limited to 'lib/search.js')
-rw-r--r--lib/search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/search.js b/lib/search.js
index 63ca66763..a9081bed7 100644
--- a/lib/search.js
+++ b/lib/search.js
@@ -121,9 +121,10 @@ function filterWords (data, args, notArgs) {
function prettify (data, args) {
try {
var tty = require("tty")
- , cols = tty.isatty(tty.stdoutFD) ?
+ , cols = tty.isatty(1) ?
( tty.getWindowSize ? tty.getWindowSize()[1]
: Infinity )
+ : Infinity
} catch (ex) { cols = Infinity }
// name, desc, author, keywords