diff --git a/plugin/editorconfig.vim b/plugin/editorconfig.vim index de218de83..72fabc00e 100644 --- a/plugin/editorconfig.vim +++ b/plugin/editorconfig.vim @@ -186,7 +186,11 @@ function! s:GetFilenames(path, filename) " {{{1 let l:path_list = [] let l:path = a:path while 1 - let l:path_list += [l:path . '/' . a:filename] + if l:path == '/' + let l:path_list += [ '/' . a:filename] + else + let l:path_list += [ l:path . '/' . a:filename] + endif let l:newpath = fnamemodify(l:path, ':h') if l:path == l:newpath break