summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-03-29 03:12:55 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-03-29 03:12:55 +0900
commitd988f3fa50e0cefc8f0f1e69c296ecc9015b485c (patch)
treef8b33a47d83266d8b0cc48b095162e2540623f5c /src
parente865144aced734a942fd6876fe0c8402be214659 (diff)
Retain ANSI background color
Diffstat (limited to 'src')
-rw-r--r--src/item.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.go b/src/item.go
index c94166f2..9e2e1e7e 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{