Reverse the order of v:oldfiles

This commit is contained in:
Junegunn Choi 2015-08-15 03:13:15 +09:00
parent 76ef9e9d81
commit aa85c424ea

View file

@ -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({