From: Kim F. Storm Date: Mon, 8 Nov 2004 23:34:12 +0000 (+0000) Subject: (update_window_fringes): Update fringe bitmaps if X-Git-Tag: ttn-vms-21-2-B4~4085 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81544a1d1471645fc39b68a03062c6d1ab1c8585;p=emacs.git (update_window_fringes): Update fringe bitmaps if cur and row ends_at_zv_p differs. If bitmaps of a row is updated, also update previous row to get rid of misc. artifacts. --- diff --git a/src/fringe.c b/src/fringe.c index 000095f470a..44c36d12b6b 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -930,6 +930,7 @@ update_window_fringes (w, force_p) if (force_p || row->y != cur->y || row->visible_height != cur->visible_height + || row->ends_at_zv_p != cur->ends_at_zv_p || left != cur->left_fringe_bitmap || right != cur->right_fringe_bitmap || left_face_id != cur->left_fringe_face_id @@ -953,6 +954,9 @@ update_window_fringes (w, force_p) row->right_fringe_bitmap = right; row->left_fringe_face_id = left_face_id; row->right_fringe_face_id = right_face_id; + + if (rn > 0 && row->redraw_fringe_bitmaps_p) + row[-1].redraw_fringe_bitmaps_p = cur[-1].redraw_fringe_bitmaps_p = 1; } return redraw_p;