Commit 7dfa5c49 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(draw_fringe_bitmap): Don't calculate default overlay arrow

bitmap here, but ...
(update_window_fringes): ... here, so we can test if it has changed.
parent 8abd887f
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment