From f42b7d30b3beffba16b7c4b2ef53bbba1da1b059 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 6 Jan 2024 08:42:25 +0100 Subject: [PATCH] completions/ant: don't look at tokens from adjacent commands --- share/completions/ant.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/ant.fish b/share/completions/ant.fish index f8193cc33..bd315498e 100644 --- a/share/completions/ant.fish +++ b/share/completions/ant.fish @@ -2,7 +2,7 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml and imported files" function __get_buildfile -d "Get a buildfile that will be used by ant" - set -l tokens $argv # tokens from 'commandline -co' + set -l tokens $argv # tokens from 'commandline -opc' set -l prev $tokens[1] set -l buildfile "build.xml" for token in $argv[2..-1] @@ -56,7 +56,7 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an end # completion for ant targets -complete -x -c ant -a "(__fish_complete_ant_targets (commandline -co))" +complete -x -c ant -a "(__fish_complete_ant_targets (commandline -opc))" # Script Options: complete -f -c ant -l help -l h -d 'print help message and ant help'