Leave out directories

References #29.
This commit is contained in:
Marco Hinz 2013-07-19 01:31:31 +02:00
parent a20fa308d3
commit 1e8d6142ec

View file

@ -204,7 +204,7 @@ function! s:show_dir(cnt) abort
call append('$', '')
endif
for fname in split(glob('.\=*'))
if (fname == '.') || (fname == '..')
if isdirectory(fname)
continue
endif
call add(files, [getftime(fname), fname])