Retain ANSI background color

This commit is contained in:
Junegunn Choi 2015-03-29 03:12:55 +09:00
parent e865144ace
commit d988f3fa50

View File

@ -118,7 +118,7 @@ func (item *Item) colorOffsets(color int, bold bool, current bool) []colorOffset
} else {
ansi := item.colors[curr-1]
bg := ansi.color.bg
if current {
if current && bg == -1 {
bg = int(curses.DarkBG)
}
offsets = append(offsets, colorOffset{