mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
__fish_complete_subcommand: (re)move confusing comment
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowing
|
function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowing
|
||||||
# Pass --commandline to complete the remainder of the arguments instead of the commandline.
|
|
||||||
# Other args are considered flags to the supercommand that require an option.
|
|
||||||
|
|
||||||
# How many non-option tokens we skip in the input commandline before completing the subcommand
|
# How many non-option tokens we skip in the input commandline before completing the subcommand
|
||||||
# Usually 1; for ssh 2.
|
# Usually 1; for ssh 2.
|
||||||
set -l skip_next 1
|
set -l skip_next 1
|
||||||
@@ -12,7 +9,7 @@ function __fish_complete_subcommand -d "Complete subcommand" --no-scope-shadowin
|
|||||||
switch $arg
|
switch $arg
|
||||||
case '--fcs-skip=*'
|
case '--fcs-skip=*'
|
||||||
set skip_next (string split = -- $arg)[2]
|
set skip_next (string split = -- $arg)[2]
|
||||||
case --commandline
|
case --commandline # --commandline means to use our arguments instead of the commandline.
|
||||||
set subcommand $argv
|
set subcommand $argv
|
||||||
set -e argv
|
set -e argv
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user