fixes out of bounds error on filtered selection #7

This commit is contained in:
Bradley Cicenas
2017-03-09 23:09:58 +00:00
parent 96b01eb3b9
commit b2184bbc6d
2 changed files with 13 additions and 3 deletions

View File

@@ -132,7 +132,10 @@ func Display() bool {
return false
}
if expand {
ExpandView(cursor.Selected())
c := cursor.Selected()
if c != nil {
ExpandView(c)
}
return false
}
return true