aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
Diffstat (limited to 'go')
-rw-r--r--go/ui/choice.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/go/ui/choice.go b/go/ui/choice.go
index 1c1c72b6..f937646b 100644
--- a/go/ui/choice.go
+++ b/go/ui/choice.go
@@ -40,6 +40,7 @@ func (c *Choice) setText() {
func (c *Choice) GetChoosen(x, y int) int {
i := (y - c.Y) / (c.Height / len(c.choices))
+ if i == len(c.choices) { i = i - 1 }
return i
}