mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
...
This commit is contained in:
parent
96ba62f34e
commit
697805765e
1 changed files with 1 additions and 4 deletions
|
|
@ -49,10 +49,7 @@ func GenerateCompletions(args []string) error {
|
|||
output_type = args[0]
|
||||
args = args[1:]
|
||||
}
|
||||
n := len(args)
|
||||
if n < 1 {
|
||||
n = 1
|
||||
}
|
||||
n := max(1, len(args))
|
||||
if output_type == "setup" {
|
||||
if len(args) == 0 {
|
||||
return fmt.Errorf("The shell must be specified")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue