diff --git a/plugin/fzf.vim b/plugin/fzf.vim index f8a11ca..7020e52 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -152,9 +152,9 @@ command! -bang -nargs=1 Locate call s:fzf({ " ------------------------------------------------------------------ function! s:all_files() return extend( - \ filter(copy(v:oldfiles), + \ filter(reverse(copy(v:oldfiles)), \ "v:val !~ 'fugitive:\\|NERD_tree\\|^/tmp/\\|.git/'"), - \ map(s:buflisted(), 'bufname(v:val)')) + \ filter(map(s:buflisted(), 'bufname(v:val)'), '!empty(v:val)')) endfunction command! -bang History call s:fzf({