From 6d2b44586765788e5aeae8e01dbeddb35d907174 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 16 Mar 2015 10:52:25 -0400 Subject: [PATCH] fix(buffer) cut: when cut root directory, it became transparent --- lib/client/buffer.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/client/buffer.js b/lib/client/buffer.js index 4003a449..65d5607a 100644 --- a/lib/client/buffer.js +++ b/lib/client/buffer.js @@ -88,13 +88,16 @@ var Util, DOM; from = Info.dirPath; clear(); - addCutClass(); - Storage - .set(CUT, { - from : from, - names: names - }); + if (names[0] !== '..') { + addCutClass(); + + Storage + .set(CUT, { + from : from, + names: names + }); + } } function clear() {