diff options
author | isaacs <i@izs.me> | 2011-10-12 21:06:18 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-12 21:06:18 +0400 |
commit | 24764227e76e404e4695948da84e3f2a47633e83 (patch) | |
tree | bef55bd16dfa72e046bac50a358039db024e177f | |
parent | f70e3d4baca86678c2dd9f94bfb7f87328de349d (diff) |
typo in search.js
-rw-r--r-- | lib/search.js | 3 |
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 |