mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-08 13:34:47 +08:00
Simplify v:oldfiles filter
This commit is contained in:
@@ -341,8 +341,7 @@ endfunction
|
||||
" ------------------------------------------------------------------
|
||||
function! s:all_files()
|
||||
return extend(
|
||||
\ filter(reverse(copy(v:oldfiles)),
|
||||
\ "v:val !~ 'fugitive:\\|__Tagbar__\\|NERD_tree\\|^/tmp/\\|\\.git/\\|term://'"),
|
||||
\ filter(reverse(copy(v:oldfiles)), "filereadable(expand(v:val))"),
|
||||
\ filter(map(s:buflisted(), 'bufname(v:val)'), '!empty(v:val)'))
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user