fix tree items not being highlighted when active

This commit is contained in:
Tim Cooper
2014-12-09 16:04:25 -04:00
parent 91247c27e7
commit cd99188e8a

View File

@@ -25,7 +25,7 @@ func (ti TreeItem) TreeItemStyle(fg, bg uiterm.Attribute, active bool) (uiterm.A
fg |= uiterm.AttrBold
}
if active {
bg |= uiterm.AttrReverse
fg, bg = bg, fg
}
return fg, bg
}