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, 08 Nov 2004 17:18:15 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.925 emacs/src/xdisp.c:1.926
*** emacs/src/xdisp.c:1.925     Tue Nov  2 09:08:42 2004
--- emacs/src/xdisp.c   Mon Nov  8 22:12:13 2004
***************
*** 20411,20429 ****
    int past_end = 0;
  
    first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
    row = row_containing_pos (w, charpos, first, NULL, 0);
    if (row == NULL)
      {
!       if (charpos < MATRIX_ROW_START_CHARPOS (first))
!       {
!         *x = *y = *hpos = *vpos = 0;
!         return 1;
!       }
!       else
!       {
!         row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos));
!         past_end = 1;
!       }
      }
  
    *x = row->x;
--- 20411,20430 ----
    int past_end = 0;
  
    first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
+   if (charpos < MATRIX_ROW_START_CHARPOS (first))
+     {
+       *x = first->x;
+       *y = first->y;
+       *hpos = 0;
+       *vpos = MATRIX_ROW_VPOS (first, w->current_matrix);
+       return 1;
+     }
+ 
    row = row_containing_pos (w, charpos, first, NULL, 0);
    if (row == NULL)
      {
!       row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos));
!       past_end = 1;
      }
  
    *x = row->x;




reply via email to

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