add sorting by container state

This commit is contained in:
Bradley Cicenas
2017-02-22 05:20:37 +00:00
parent 9b483ba2f3
commit a1fdd8fb49
2 changed files with 13 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ func (g *Grid) cursorUp() {
func (g *Grid) cursorDown() {
idx := g.cursorIdx()
// increment if possible
if idx > (len(g.containers) - 1) {
if idx >= (len(g.containers) - 1) {
return
}
if idx >= g.maxRows-1 {