Skip to content

Commit

Permalink
traverse: fix _carapace completion
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 21, 2023
1 parent 9e76bdb commit 1db9bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ loop:
// positional or subcommand
default:
logger.Printf("completing positional and subcommands for arg %#v\n", context.CallbackValue)
batch := Batch(storage.getPositional(c, len(c.Flags().Args())))
batch := Batch(storage.getPositional(c, len(context.Args)))
if c.HasAvailableSubCommands() && len(context.Args) <= 1 {
batch = append(batch, actionSubcommands(c))
}
Expand Down

0 comments on commit 1db9bab

Please sign in to comment.