Exclude the current file from History (#422)

Close #367
This commit is contained in:
Jack O'Connor 2017-08-17 13:14:43 -04:00 committed by Junegunn Choi
parent 43a570d6e6
commit 7e868c49ac

View file

@ -464,7 +464,7 @@ endfunction
function! fzf#vim#history(...)
return s:fzf('history-files', {
\ 'source': reverse(s:all_files()),
\ 'source': filter(reverse(s:all_files()), 'v:val != expand("%")'),
\ 'options': '-m --prompt "Hist> "'
\}, a:000)
endfunction