mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +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"
|
" [\n"
|
||||||
(
|
(
|
||||||
$fishes
|
$fishes
|
||||||
| if ('n' in ($subcommand | columns)) {
|
| if ('n' in ($subcommand.args | columns)) {
|
||||||
if ($subcommand.name != "") {
|
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
|
where ($it.n | str contains $subcommand.name) # for subcommand -> any where n matches `__fish_seen_subcommand_from arg` for the subcommand name
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue