/[emacs]/emacs/src/xdisp.c
ViewVC logotype

Diff of /emacs/src/xdisp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.925 by rms, Tue Nov 2 09:08:42 2004 UTC revision 1.926 by kfstorm, Mon Nov 8 22:12:13 2004 UTC
# Line 20411  fast_find_position (w, charpos, hpos, vp Line 20411  fast_find_position (w, charpos, hpos, vp
20411    int past_end = 0;    int past_end = 0;
20412    
20413    first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);    first = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
20414      if (charpos < MATRIX_ROW_START_CHARPOS (first))
20415        {
20416          *x = first->x;
20417          *y = first->y;
20418          *hpos = 0;
20419          *vpos = MATRIX_ROW_VPOS (first, w->current_matrix);
20420          return 1;
20421        }
20422    
20423    row = row_containing_pos (w, charpos, first, NULL, 0);    row = row_containing_pos (w, charpos, first, NULL, 0);
20424    if (row == NULL)    if (row == NULL)
20425      {      {
20426        if (charpos < MATRIX_ROW_START_CHARPOS (first))        row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos));
20427          {        past_end = 1;
           *x = *y = *hpos = *vpos = 0;  
           return 1;  
         }  
       else  
         {  
           row = MATRIX_ROW (w->current_matrix, XFASTINT (w->window_end_vpos));  
           past_end = 1;  
         }  
20428      }      }
20429    
20430    *x = row->x;    *x = row->x;

Legend:
Removed from v.1.925  
changed lines
  Added in v.1.926

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26