diff options
author | Ailin Nemui <ailin@esf51.localdomain> | 2014-10-28 10:50:26 +0100 |
---|---|---|
committer | Ailin Nemui <ailin@esf51.localdomain> | 2014-10-28 10:50:26 +0100 |
commit | 77a90effe305a0d39ce33fe187bb2e0c0125da36 (patch) | |
tree | 01aad3fd945ab88d7d7e81c09400ab6cfc5d4056 /src/fe-common/core | |
parent | 688fc817dd9958f66e3be603dd0ee8ecc97d649d (diff) | |
download | irssi-77a90effe305a0d39ce33fe187bb2e0c0125da36.zip |
Fix reset of attributes with ansi
reported by Christopher Ohlsson (dmnc)
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/formats.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c index 375b00eb..ccf48394 100644 --- a/src/fe-common/core/formats.c +++ b/src/fe-common/core/formats.c @@ -905,10 +905,13 @@ static const char *get_ansi_color(THEME_REC *theme, const char *str, switch (num) { case 0: - /* reset colors back to default */ + /* reset colors and attributes back to default */ fg = theme->default_color; bg = -1; - flags &= ~(GUI_PRINT_FLAG_COLOR_24_FG | GUI_PRINT_FLAG_COLOR_24_BG | GUI_PRINT_FLAG_INDENT); + flags &= ~(GUI_PRINT_FLAG_INDENT | + GUI_PRINT_FLAG_BOLD | GUI_PRINT_FLAG_ITALIC | GUI_PRINT_FLAG_UNDERLINE | + GUI_PRINT_FLAG_BLINK | GUI_PRINT_FLAG_REVERSE | + GUI_PRINT_FLAG_COLOR_24_FG | GUI_PRINT_FLAG_COLOR_24_BG); break; case 1: /* hilight */ |