Test for an empty viminfo file
This commit is contained in:
parent
068c5ef102
commit
a576a6370a
1 changed files with 21 additions and 19 deletions
|
@ -217,6 +217,7 @@ function! s:show_files(cnt) abort
|
||||||
let num = s:numfiles
|
let num = s:numfiles
|
||||||
let entries = {}
|
let entries = {}
|
||||||
|
|
||||||
|
if !empty(v:oldfiles)
|
||||||
for fname in v:oldfiles
|
for fname in v:oldfiles
|
||||||
let fullpath = resolve(fnamemodify(fname, ':p'))
|
let fullpath = resolve(fnamemodify(fname, ':p'))
|
||||||
|
|
||||||
|
@ -241,6 +242,7 @@ function! s:show_files(cnt) abort
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
return cnt
|
return cnt
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue