diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2016-12-15 19:57:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 19:57:57 +0100 |
commit | 1c6695107c09e8861a696d66b029e7df62589fcd (patch) | |
tree | bdea5f2ba15e70432c6e9ae994dcb9c2039e02b7 /src | |
parent | 618c8bd10e45b3132d356e2f6bec290a63b8a9fa (diff) | |
parent | 17e42649bb514fa0e12e094032cb27e3289204c6 (diff) | |
download | irssi-1c6695107c09e8861a696d66b029e7df62589fcd.zip |
Merge pull request #588 from ailin-nemui/mirc_99
reset background for mirc colour 99
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-printtext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c index 775e6044..a07451fa 100644 --- a/src/fe-text/gui-printtext.c +++ b/src/fe-text/gui-printtext.c @@ -169,7 +169,8 @@ static void get_colors(int flags, int *fg, int *bg, int *attr) if (*bg >= 0) { *bg = mirc_colors[*bg % 100]; flags &= ~GUI_PRINT_FLAG_COLOR_24_BG; - if (settings_get_bool("mirc_blink_fix")) { + /* ignore mirc color 99 = -1 (reset) */ + if (*bg != -1 && settings_get_bool("mirc_blink_fix")) { if (*bg < 16) /* ansi bit flip :-( */ *bg = (*bg&8) | (*bg&4)>>2 | (*bg&2) | (*bg&1)<<2; *bg = term_color256map[*bg&0xff] & 7; |