Fix ninja target completions without the -C flag

This commit is contained in:
Johannes Altmanninger 2020-04-13 20:41:52 +02:00
parent 82b811281d
commit 671b941b52

View File

@ -1,7 +1,7 @@
function __fish_ninja function __fish_ninja
set -l saved_args $argv set -l saved_args $argv
set -l dir . set -l dir .
if argparse -i C/dir= -- (commandline -opc) && set -ql _flag_C if argparse -i C/dir= -- (commandline -opc)
# Using eval to expand ~ and variables specified on the commandline. # Using eval to expand ~ and variables specified on the commandline.
eval command ninja -C$_flag_C \$saved_args eval command ninja -C$_flag_C \$saved_args
end end