diff --git a/game/options.go b/game/options.go index 7c3d594..95fe9a2 100644 --- a/game/options.go +++ b/game/options.go @@ -223,6 +223,12 @@ func (g *RogueGame) getStr(opt *string, win *Window) int { g.Msgs.Mpos += len(buf) } + return getStrResult(c) +} + +// getStrResult maps the terminating key to the C return code (options.c +// get_str). +func getStrResult(c byte) int { switch c { case '-': return Minus