[GitFiles] Take ls-files options as the arguments

Close #146
This commit is contained in:
Junegunn Choi
2016-05-25 00:24:12 +09:00
parent c786d51637
commit 4d911563cd
3 changed files with 28 additions and 28 deletions

View File

@@ -409,9 +409,9 @@ function! fzf#vim#gitfiles(args, ...)
if v:shell_error
return s:warn('Not in git repo')
endif
if a:args !~ '^?'
if a:args != '?'
return s:fzf(fzf#vim#wrap({
\ 'source': 'git ls-files',
\ 'source': 'git ls-files '.a:args,
\ 'dir': root,
\ 'options': '-m --prompt "GitFiles> "'
\}), a:000)