Merge pull request #574 from sooth-sayer/master

Remove empty segments
This commit is contained in:
Phil Runninger 2017-05-20 03:07:36 -04:00 committed by GitHub
commit 925627536e

View File

@ -544,7 +544,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)