diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c index 0d94805f..09fc9f0f 100644 --- a/terminal/terminal-screen.c +++ b/terminal/terminal-screen.c @@ -1136,8 +1136,15 @@ terminal_screen_update_colors (TerminalScreen *screen) /* bold color */ if (!bold_use_default) bold_use_default = !terminal_preferences_get_color (screen->preferences, "color-bold", &bold); +#if VTE_CHECK_VERSION (0, 52, 0) + /* meaning of bold==NULL changed in vte 0.52.0 */ + /* new behaviour fixes bugs with OSC 10;color not modifying bold color */ + vte_terminal_set_color_bold (VTE_TERMINAL (screen->terminal), bold_use_default ? NULL : &bold); +#else + /* old behaviour still better than having computed bold color, even if OSC 10;color is broken */ if (!bold_use_default || has_fg) vte_terminal_set_color_bold (VTE_TERMINAL (screen->terminal), bold_use_default ? &fg : &bold); +#endif #if VTE_CHECK_VERSION (0, 51, 3) /* "bold-is-bright" supported since vte 0.51.3 */