[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix handling of OSC-10 escape sequence (bold text color)
noreply at xfce.org
noreply at xfce.org
Thu Jan 3 21:28:29 CET 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit b90822b13392f620e4e3770cc3991124f09e7ccf
Author: Igor <f2404 at yandex.ru>
Date: Thu Jan 3 15:25:24 2019 -0500
Fix handling of OSC-10 escape sequence (bold text color)
Fixes bug #15019
---
terminal/terminal-screen.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 0d94805..7f1ed00 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -1136,8 +1136,14 @@ 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)
+ /* the meaning of NULL for bold color changed in vte 0.52: see bug #15019 */
+ vte_terminal_set_color_bold (VTE_TERMINAL (screen->terminal), bold_use_default ? NULL : &bold);
+#else
+ /* avoding computed bold color for older vte versions */
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 */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list