mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 12:44:24 +08:00
[GFiles] Avoid duplicate entries (#473)
It is presumed that duplicates in `git ls-files` are contiguous.
This commit is contained in:
committed by
Junegunn Choi
parent
5c6cee878a
commit
4b9e2a03fe
@@ -511,7 +511,7 @@ function! fzf#vim#gitfiles(args, ...)
|
||||
endif
|
||||
if a:args != '?'
|
||||
return s:fzf('gfiles', {
|
||||
\ 'source': 'git ls-files '.a:args,
|
||||
\ 'source': 'git ls-files '.a:args.(s:is_win ? '' : ' | uniq'),
|
||||
\ 'dir': root,
|
||||
\ 'options': '-m --prompt "GitFiles> "'
|
||||
\}, a:000)
|
||||
|
||||
Reference in New Issue
Block a user