diff options
Diffstat (limited to 'lib/search.js')
-rw-r--r-- | lib/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/search.js b/lib/search.js index cb02bf4bd..8a7238cb1 100644 --- a/lib/search.js +++ b/lib/search.js @@ -253,9 +253,9 @@ function addColorMarker (str, arg, i) { function colorize (line) { for (var i = 0; i < cl; i ++) { var m = i + 1 - var color = npm.config.get("color") ? "\033["+colors[i]+"m" : "" + var color = npm.color ? "\033["+colors[i]+"m" : "" line = line.split(String.fromCharCode(m)).join(color) } - var uncolor = npm.config.get("color") ? "\033[0m" : "" + var uncolor = npm.color ? "\033[0m" : "" return line.split("\u0000").join(uncolor) } |