Test for an empty viminfo file

This commit is contained in:
Marco Hinz 2013-08-02 15:46:12 +02:00
parent 068c5ef102
commit a576a6370a

View file

@ -217,6 +217,7 @@ function! s:show_files(cnt) abort
let num = s:numfiles
let entries = {}
if !empty(v:oldfiles)
for fname in v:oldfiles
let fullpath = resolve(fnamemodify(fname, ':p'))
@ -241,6 +242,7 @@ function! s:show_files(cnt) abort
break
endif
endfor
endif
return cnt
endfunction