emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Thu, 15 Sep 2005 08:06:40 -0400

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.1052 emacs/src/xdisp.c:1.1053
*** emacs/src/xdisp.c:1.1052    Mon Sep 12 13:42:30 2005
--- emacs/src/xdisp.c   Thu Sep 15 12:06:39 2005
***************
*** 4807,4813 ****
           && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it),
                                 (double) it->selective)) /* iftc */
        {
!       xassert (FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n');
        newline_found_p = forward_to_next_line_start (it, &skipped_p);
        }
  
--- 4807,4814 ----
           && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it),
                                 (double) it->selective)) /* iftc */
        {
!       xassert (IT_BYTEPOS (*it) == BEGV
!                || FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n');
        newline_found_p = forward_to_next_line_start (it, &skipped_p);
        }
  
***************
*** 6525,6530 ****
--- 6526,6532 ----
        /* If buffer ends in ZV without a newline, move to the start of
         the line to satisfy the post-condition.  */
        if (IT_CHARPOS (*it) == ZV
+         && ZV > BEGV
          && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n')
        move_it_by_lines (it, 0, 0);
      }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]