From: Gregory Heytings Date: Tue, 25 May 2021 04:21:03 +0000 (+0200) Subject: Consider all user-defined bitmaps in gui_init_fringe() X-Git-Tag: emacs-28.0.90~2346 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=740d424547d3fabefc40e5aabba9bc2d5ba837fc;p=emacs.git Consider all user-defined bitmaps in gui_init_fringe() * src/fringe.c (gui_init_fringe): Consider user-defined bitmaps that override default ones (bug#47832). --- diff --git a/src/fringe.c b/src/fringe.c index 65c9a84ac99..47615f51f97 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1776,14 +1776,15 @@ gui_init_fringe (struct redisplay_interface *rif) for (bt = NO_FRINGE_BITMAP + 1; bt < MAX_STANDARD_FRINGE_BITMAPS; bt++) { struct fringe_bitmap *fb = &standard_bitmaps[bt]; - rif->define_fringe_bitmap (bt, fb->bits, fb->height, fb->width); + if (!fringe_bitmaps[bt]) + rif->define_fringe_bitmap (bt, fb->bits, fb->height, fb->width); } /* Set up user-defined fringe bitmaps that might have been defined before the frame of this kind was initialized. This can happen if Emacs is started as a daemon and the init files define fringe bitmaps. */ - for ( ; bt < max_used_fringe_bitmap; bt++) + for (bt = NO_FRINGE_BITMAP + 1; bt < max_used_fringe_bitmap; bt++) { struct fringe_bitmap *fb = fringe_bitmaps[bt]; if (fb)