completions/git: Match files inside directories again

Fixes #5317.
This commit is contained in:
Fabian Homborg 2018-11-05 15:53:06 +01:00
parent a700acadfa
commit 4d4227e57f

View file

@ -148,8 +148,8 @@ function __fish_git_files
# and so git shows untracked files (even in untracked dirs) for that.
# If the current token is empty, this matches everything in $PWD.
set -l files (commandline -ct)
# With the trailing "/", it will match directories, but won't descend.
set files "$files*" "$files*/"
# The trailing "**" is necessary to match files inside the given directories.
set files "$files*" "$files*/**"
set -q untracked; and set -a status_opt -unormal
or set -a status_opt -uno