Fix error with empty list and release 0.9.1-dev

This commit is contained in:
Junegunn Choi
2015-01-15 06:06:22 +09:00
parent 0b5fa56444
commit 62acb9adc4
3 changed files with 5 additions and 4 deletions

View File

@@ -134,7 +134,8 @@ func (t *Terminal) output() {
fmt.Println(string(t.input))
}
if len(t.selected) == 0 {
if t.merger.Length() > t.cy {
cnt := t.merger.Length()
if cnt > 0 && cnt > t.cy {
fmt.Println(t.merger.Get(t.listIndex(t.cy)).AsString())
}
} else {