diff --git a/m/gotoLine.go b/m/gotoLine.go index 799a633..fa36906 100644 --- a/m/gotoLine.go +++ b/m/gotoLine.go @@ -47,6 +47,11 @@ func (p *Pager) onGotoLineKey(key twin.KeyCode) { } func (p *Pager) onGotoLineRune(char rune) { + if char == 'q' { + p.mode = _Viewing + return + } + newGotoLineString := p.gotoLineString + string(char) _, err := strconv.Atoi(newGotoLineString) if err != nil {