Remove empty segments

This commit is contained in:
d.chernyatiev
2016-04-25 19:05:17 +04:00
parent b0bb781fc7
commit 1a55a93788

View File

@@ -472,7 +472,7 @@ function! s:Path.readInfoFromDisk(fullpath)
throw "NERDTree.InvalidFiletypeError: Cant handle FIFO files: " . a:fullpath
endif
let self.pathSegments = split(fullpath, '/')
let self.pathSegments = filter(split(fullpath, '/'), '!empty(v:val)')
let self.isReadOnly = 0
if isdirectory(a:fullpath)