From 0f03107bc94b31a9c7adcee6da8e5de7492e4b0b Mon Sep 17 00:00:00 2001 From: ksmai Date: Sat, 31 Dec 2022 11:41:48 +0800 Subject: [PATCH] fix: GFiles is ignoring args (#1447) The commit linked below removed `a:args` from the `git ls-files` command, making it unable to take any options like `--cached`, `--others` and `--exclude-standard` https://github.com/junegunn/fzf.vim/commit/531dd67350331771c0c099e9682a05744149e7b9 --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index afe2f2f..10f0b2e 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -634,7 +634,7 @@ function! fzf#vim#gitfiles(args, ...) endif let prefix = 'git -C ' . fzf#shellescape(root) . ' ' if a:args != '?' - let source = prefix . 'ls-files -z' + let source = prefix . 'ls-files -z ' . a:args if s:git_version_requirement(2, 31) let source .= ' --deduplicate' endif