Finish getStr split (getStrResult)
This commit is contained in:
@@ -223,6 +223,12 @@ func (g *RogueGame) getStr(opt *string, win *Window) int {
|
|||||||
g.Msgs.Mpos += len(buf)
|
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 {
|
switch c {
|
||||||
case '-':
|
case '-':
|
||||||
return Minus
|
return Minus
|
||||||
|
|||||||
Reference in New Issue
Block a user