Skip to content

Commit

Permalink
cmd/acme: fix failed cmdlookup panic
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Dec 14, 2021
1 parent 6f45baf commit c3bbda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/acme/internal/edit/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ Return:
}

func cmdlookup(c rune) int {
for i := 0; cmdtab[i].cmdc != 0; i++ {
for i := 0; i < len(cmdtab); i++ {
if cmdtab[i].cmdc == c {
return i
}
Expand Down

0 comments on commit c3bbda4

Please sign in to comment.