mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Fix reset of attributes with ansi
reported by Christopher Ohlsson (dmnc)
This commit is contained in:
parent
688fc817dd
commit
77a90effe3
1 changed files with 5 additions and 2 deletions
|
|
@ -905,10 +905,13 @@ static const char *get_ansi_color(THEME_REC *theme, const char *str,
|
||||||
|
|
||||||
switch (num) {
|
switch (num) {
|
||||||
case 0:
|
case 0:
|
||||||
/* reset colors back to default */
|
/* reset colors and attributes back to default */
|
||||||
fg = theme->default_color;
|
fg = theme->default_color;
|
||||||
bg = -1;
|
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;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
/* hilight */
|
/* hilight */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue