Fix display of 24-bit background with default foreground

This commit is contained in:
Junegunn Choi 2016-11-25 16:26:21 +09:00
parent a7344e526a
commit d4838882df
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ func (t *tScreen) sendFgBg(fg Color, bg Color) {
int(r), int(g), int(b)))
}
if bg != ColorDefault && ti.SetBgRGB != "" {
r, g, b := fg.RGB()
r, g, b := bg.RGB()
t.TPuts(ti.TParm(ti.SetBgRGB,
int(r), int(g), int(b)))
}