fixes out of bounds error on filtered selection #7

This commit is contained in:
Bradley Cicenas
2017-03-10 12:01:13 +11:00
parent 96b01eb3b9
commit b2184bbc6d
2 changed files with 13 additions and 3 deletions
+4 -1
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