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: Mon, 24 Jan 2005 15:44:42 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.971 emacs/src/xdisp.c:1.972
*** emacs/src/xdisp.c:1.971     Mon Jan 24 17:59:35 2005
--- emacs/src/xdisp.c   Mon Jan 24 20:44:39 2005
***************
*** 6413,6423 ****
        it->current_y -= it2.current_y;
        it->current_x = it->hpos = 0;
  
!       /* If we moved too far, move IT some lines forward.  */
        if (it2.vpos > -dvpos)
        {
          int delta = it2.vpos + dvpos;
          move_it_to (it, -1, -1, -1, it->vpos + delta, MOVE_TO_VPOS);
        }
      }
  }
--- 6413,6427 ----
        it->current_y -= it2.current_y;
        it->current_x = it->hpos = 0;
  
!       /* If we moved too far back, move IT some lines forward.  */
        if (it2.vpos > -dvpos)
        {
          int delta = it2.vpos + dvpos;
+         it2 = *it;
          move_it_to (it, -1, -1, -1, it->vpos + delta, MOVE_TO_VPOS);
+         /* Move back again if we got too far ahead.  */
+         if (IT_CHARPOS (*it) >= start_charpos)
+           *it = it2;
        }
      }
  }




reply via email to

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