mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-30 21:57:44 +00:00
fishgen: Fix flags crossing subcommands (#1122)
This commit is contained in:
parent
f371420c5b
commit
189c3d646e
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def make-subcommands-completion [parents: list<string>] {
|
|||
" [\n"
|
||||
(
|
||||
$fishes
|
||||
| if ('n' in ($subcommand | columns)) {
|
||||
| if ('n' in ($subcommand.args | columns)) {
|
||||
if ($subcommand.name != "") {
|
||||
where ($it.n | str contains $subcommand.name) # for subcommand -> any where n matches `__fish_seen_subcommand_from arg` for the subcommand name
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue