mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-22 18:21:13 -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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user