mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Merge pull request #110 from ailin-nemui/colour-break
restore the colour 0 ("black") that got broken by extended colours
This commit is contained in:
commit
e7f83c1dd2
1 changed files with 2 additions and 2 deletions
|
|
@ -370,7 +370,7 @@ void term_set_color(TERM_WINDOW *window, int col)
|
||||||
(fg != 0 || (col & ATTR_RESETFG) == 0)) {
|
(fg != 0 || (col & ATTR_RESETFG) == 0)) {
|
||||||
if (term_use_colors) {
|
if (term_use_colors) {
|
||||||
last_fg = fg;
|
last_fg = fg;
|
||||||
if (!(fg & 0xff))
|
if (fg && !(fg & 0xff))
|
||||||
termctl_set_color_24bit(0, last_fg >> 8);
|
termctl_set_color_24bit(0, last_fg >> 8);
|
||||||
else
|
else
|
||||||
terminfo_set_fg(last_fg);
|
terminfo_set_fg(last_fg);
|
||||||
|
|
@ -387,7 +387,7 @@ void term_set_color(TERM_WINDOW *window, int col)
|
||||||
(bg != 0 || (col & ATTR_RESETBG) == 0)) {
|
(bg != 0 || (col & ATTR_RESETBG) == 0)) {
|
||||||
if (term_use_colors) {
|
if (term_use_colors) {
|
||||||
last_bg = bg;
|
last_bg = bg;
|
||||||
if (!(bg & 0xff))
|
if (bg && !(bg & 0xff))
|
||||||
termctl_set_color_24bit(1, last_bg >> 8);
|
termctl_set_color_24bit(1, last_bg >> 8);
|
||||||
else
|
else
|
||||||
terminfo_set_bg(last_bg);
|
terminfo_set_bg(last_bg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue