mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-08-12 02:42:31 +08:00
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
This commit is contained in:
@@ -634,7 +634,7 @@ function! fzf#vim#gitfiles(args, ...)
|
|||||||
endif
|
endif
|
||||||
let prefix = 'git -C ' . fzf#shellescape(root) . ' '
|
let prefix = 'git -C ' . fzf#shellescape(root) . ' '
|
||||||
if a:args != '?'
|
if a:args != '?'
|
||||||
let source = prefix . 'ls-files -z'
|
let source = prefix . 'ls-files -z ' . a:args
|
||||||
if s:git_version_requirement(2, 31)
|
if s:git_version_requirement(2, 31)
|
||||||
let source .= ' --deduplicate'
|
let source .= ' --deduplicate'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user