emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/indent.c
Date: Sun, 21 Nov 2004 08:05:52 -0500

Index: emacs/src/indent.c
diff -c emacs/src/indent.c:1.170 emacs/src/indent.c:1.171
*** emacs/src/indent.c:1.170    Fri Nov 19 09:44:14 2004
--- emacs/src/indent.c  Sun Nov 21 12:56:53 2004
***************
*** 2069,2074 ****
--- 2069,2076 ----
      }
    else
      {
+       int it_start;
+ 
        SET_TEXT_POS (pt, PT, PT_BYTE);
        start_display (&it, w, pt);
  
***************
*** 2078,2090 ****
         we end up with the iterator placed at where it thinks X is 0,
         while the end position is really at some X > 0, the same X that
         PT had.  */
        reseat_at_previous_visible_line_start (&it);
        it.current_x = it.hpos = 0;
        move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
  
        /* Move back if we got too far.  This may happen if
         truncate-lines is on and PT is beyond right margin.  */
!       if (IT_CHARPOS (it) > PT && it.vpos > 0 && XINT (lines) > 0)
        move_it_by_lines (&it, -1, 0);
  
        it.vpos = 0;
--- 2080,2093 ----
         we end up with the iterator placed at where it thinks X is 0,
         while the end position is really at some X > 0, the same X that
         PT had.  */
+       it_start = IT_CHARPOS (it);
        reseat_at_previous_visible_line_start (&it);
        it.current_x = it.hpos = 0;
        move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);
  
        /* Move back if we got too far.  This may happen if
         truncate-lines is on and PT is beyond right margin.  */
!       if (IT_CHARPOS (it) > it_start && XINT (lines) > 0)
        move_it_by_lines (&it, -1, 0);
  
        it.vpos = 0;




reply via email to

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