]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_window_fringes): Update fringe bitmaps if
authorKim F. Storm <storm@cua.dk>
Mon, 8 Nov 2004 23:34:12 +0000 (23:34 +0000)
committerKim F. Storm <storm@cua.dk>
Mon, 8 Nov 2004 23:34:12 +0000 (23:34 +0000)
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.

src/fringe.c

index 000095f470a5a4e1125adc7d3de473fc0437cdbf..44c36d12b6bf0966faa1ddd595166ef4db8ccb20 100644 (file)
@@ -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;