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

@@ -18,7 +18,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowin
set -l options_with_param $argv
if not string length -q -- $subcommand
set -l cmd (commandline -cop | string escape) (commandline -ct)
set -l cmd (commandline -cxp | string escape) (commandline -ct)
while set -q cmd[1]
set -l token $cmd[1]
set -e cmd[1]