diff src/fringe.c @ 58057:33d7af04fba1

(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.
author Kim F. Storm <storm@cua.dk>
date Mon, 08 Nov 2004 23:34:12 +0000
parents 3c27c0be625d
children fb4cd138f0b8
line wrap: on
line diff
--- a/src/fringe.c	Mon Nov 08 23:32:56 2004 +0000
+++ b/src/fringe.c	Mon Nov 08 23:34:12 2004 +0000
@@ -930,6 +930,7 @@
       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 @@
       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;