summaryrefslogtreecommitdiff
path: root/deps/npm/lib/ls.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/ls.js')
-rw-r--r--deps/npm/lib/ls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/lib/ls.js b/deps/npm/lib/ls.js
index 3c649f2442..96068bfa57 100644
--- a/deps/npm/lib/ls.js
+++ b/deps/npm/lib/ls.js
@@ -217,7 +217,7 @@ function makeArchy_ (data, long, dir, depth, parent, d) {
}
data = unmet + " " + d + " " + data
} else {
- data = d+"@"+ data +" (max depth reached)"
+ data = d+"@"+ data
}
return data
}
@@ -249,6 +249,7 @@ function makeArchy_ (data, long, dir, depth, parent, d) {
if (dir === data.path) out.label += "\n" + dir
out.label += "\n" + getExtras(data, dir)
} else if (dir === data.path) {
+ if (out.label) out.label += " "
out.label += dir
}