From 442b2debd21b35ec7e809ed0e980bd4688c4d57e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 6 Mar 2025 10:51:45 +0200 Subject: [PATCH] Fix redisplay of tab bar when its text properties change * src/xdisp.c (update_tab_bar): Use 'equal-including-properties' to compare previous with the current tab-bar items. (Bug#76760) (cherry picked from commit bf027eb6ff267162c116006703698668794d37cc) --- src/xdisp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index e06c398af3b..5ca713f099c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -14368,7 +14368,10 @@ update_tab_bar (struct frame *f, bool save_match_data) /* Redisplay the tab-bar if we changed it. */ if (new_n_tab_bar != f->n_tab_bar_items - || NILP (Fequal (new_tab_bar, f->tab_bar_items))) + /* Some features modify the appearance of the tab bar by + manipulating the text properties. */ + || NILP (Fequal_including_properties (new_tab_bar, + f->tab_bar_items))) { /* Redisplay that happens asynchronously due to an expose event may access f->tab_bar_items. Make sure we update both -- 2.39.5