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:
ailin-nemui 2025-11-27 11:16:35 +00:00 committed by GitHub
commit 6c72dc14fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1546,9 +1546,13 @@ void format_send_as_gui_flags(TEXT_DEST_REC *dest, const char *text, SIGNAL_FUNC
break; break;
case 15: case 15:
/* remove all styling */ /* remove all styling */
fgcolor = theme->default_color; if (!hide_text_style) {
bgcolor = -1; if (!hide_colors) {
flags &= GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_MONOSPACE; fgcolor = theme->default_color;
bgcolor = -1;
}
flags &= GUI_PRINT_FLAG_INDENT | GUI_PRINT_FLAG_MONOSPACE;
}
break; break;
case 17: case 17:
if (!hide_text_style) if (!hide_text_style)