From d988f3fa50e0cefc8f0f1e69c296ecc9015b485c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 29 Mar 2015 03:12:55 +0900 Subject: [PATCH] Retain ANSI background color --- src/item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item.go b/src/item.go index c94166f..9e2e1e7 100644 --- a/src/item.go +++ b/src/item.go @@ -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{