mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Merge pull request #1594 from soulseller/fix/hide-text-style-colors
formats: fix hide_text_style and hide_colors to mitigate color bleed
This commit is contained in:
commit
6c72dc14fa
1 changed files with 7 additions and 3 deletions
|
|
@ -1546,9 +1546,13 @@ void format_send_as_gui_flags(TEXT_DEST_REC *dest, const char *text, SIGNAL_FUNC
|
|||
break;
|
||||
case 15:
|
||||
/* remove all styling */
|
||||
fgcolor = theme->default_color;
|
||||
bgcolor = -1;
|
||||
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE;
|
||||
if (!hide_text_style) {
|
||||
if (!hide_colors) {
|
||||
fgcolor = theme->default_color;
|
||||
bgcolor = -1;
|
||||
}
|
||||
flags &= GUI_PRINT_FLAG_INDENT | GUI_PRINT_FLAG_MONOSPACE;
|
||||
}
|
||||
break;
|
||||
case 17:
|
||||
if (!hide_text_style)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue