mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 11:51:15 -03:00
completion: adopt commandline -x replacing deprecated -o
This gives us more accurate completions because completion scripts get expanded paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
function __fish_use_subcommand -d "Test if a non-switch argument has been given in the current commandline"
|
||||
set -l cmd (commandline -poc)
|
||||
set -l cmd (commandline -pxc)
|
||||
set -e cmd[1]
|
||||
for i in $cmd
|
||||
switch $i
|
||||
|
||||
Reference in New Issue
Block a user