]> git.eshelyaron.com Git - emacs.git/commitdiff
* fringe.c (update_window_fringes): Handle case where buffer ends
authorChong Yidong <cyd@stupidchicken.com>
Thu, 27 Oct 2005 15:03:53 +0000 (15:03 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 27 Oct 2005 15:03:53 +0000 (15:03 +0000)
with a newline.

src/ChangeLog
src/fringe.c

index 297a23fe7801d2a0dee5490c02f00f6868db0da8..4f0e4c0d9e1ccb597296ad86f5cfd02c009a4563 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
+
+       * fringe.c (update_window_fringes): Handle case where buffer ends
+       with a newline.
+
 2005-10-27  Kenichi Handa  <handa@m17n.org>
 
        * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
index 754ee68ca56dc862356edd6e47b74e6588d5ddfd..5513c3374c3b089895aced76b8c62fdd358133ce 100644 (file)
@@ -860,7 +860,7 @@ update_window_fringes (w, keep_current_p)
 
              if (!done_bot)
                {
-                 if (MATRIX_ROW_END_CHARPOS (row) >= BUF_ZV (XBUFFER (w->buffer))
+                 if (row->ends_at_zv_p
                      && !MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P (w, row))
                    row->indicate_eob_p = !NILP (boundary_bot), done_bot = 1;
                  else if (y + row->height >= yb)