completion: adopt commandline -x replacing deprecated -o

This gives us more accurate completions because completion scripts get
expanded paths
This commit is contained in:
Johannes Altmanninger
2024-01-22 07:42:45 +01:00
parent 798527d79a
commit 29f35d6cdf
150 changed files with 1394 additions and 1394 deletions

View File

@@ -21,7 +21,7 @@ complete -C 'testcommand 0'
# This tests that a call to complete from within a completion doesn't trigger
# wrap chain explosion - #5638 again.
function testcommand2_complete
set -l tokens (commandline -opc) (commandline -ct)
set -l tokens (commandline -xpc) (commandline -ct)
set -e tokens[1]
echo $tokens 1>&2
end