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
path: root/lib/ls.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-09-08 21:16:24 +0400
committerisaacs <i@izs.me>2012-09-08 21:16:24 +0400
commit42333d3413e10f28a04a128868317e6ce279e996 (patch)
treed5a0f87de09aea98d1c6e24ff65968aef51c383e /lib/ls.js
parent389fa520a7bacb3b1fc9453d7a0d35dfbd9c9337 (diff)
ls: Space between top-level name and folder
Diffstat (limited to 'lib/ls.js')
-rw-r--r--lib/ls.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ls.js b/lib/ls.js
index 178a5a176..96068bfa5 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -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
}