From 7dfa5c4928eaf7fec6a718304365ceef0d6e8426 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Tue, 21 Mar 2006 13:29:26 +0000 Subject: [PATCH] (draw_fringe_bitmap): Don't calculate default overlay arrow bitmap here, but ... (update_window_fringes): ... here, so we can test if it has changed. --- src/fringe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fringe.c b/src/fringe.c index 3048be2d707..48fb11810ed 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -866,10 +866,7 @@ draw_fringe_bitmap (w, row, left_p) draw_fringe_bitmap_1 (w, row, left_p, overlay, NO_FRINGE_BITMAP); if (left_p && row->overlay_arrow_bitmap != NO_FRINGE_BITMAP) - draw_fringe_bitmap_1 (w, row, 1, 1, - (row->overlay_arrow_bitmap < 0 - ? get_logical_fringe_bitmap (w, Qoverlay_arrow, 0, 0) - : row->overlay_arrow_bitmap)); + draw_fringe_bitmap_1 (w, row, 1, 1, row->overlay_arrow_bitmap); } @@ -1151,6 +1148,9 @@ update_window_fringes (w, keep_current_p) } } + if (row->overlay_arrow_bitmap < 0) + row->overlay_arrow_bitmap = get_logical_fringe_bitmap (w, Qoverlay_arrow, 0, 0); + if (row->overlay_arrow_bitmap != cur->overlay_arrow_bitmap) { redraw_p = row->redraw_fringe_bitmaps_p = cur->redraw_fringe_bitmaps_p = 1; -- 2.39.2