Get zsh completion working apart from delegation

This commit is contained in:
Kovid Goyal
2022-09-19 08:54:54 +05:30
parent cbbda23e01
commit 2cc359ccc8
7 changed files with 160 additions and 6 deletions

View File

@@ -43,7 +43,11 @@ func main(args []string) error {
output_type = args[0]
args = args[1:]
}
shell_state := make(map[string]string, len(args))
n := len(args)
if n < 1 {
n = 1
}
shell_state := make(map[string]string, n)
for _, arg := range args {
k, v, found := utils.Cut(arg, "=")
if !found {