/[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.718 by pj, Mon Dec 24 12:16:28 2001 UTC revision 1.719 by gerd, Fri Dec 28 12:42:35 2001 UTC
# Line 9534  try_scrolling (window, just_this_one_p, Line 9534  try_scrolling (window, just_this_one_p,
9534        y0 = it.current_y;        y0 = it.current_y;
9535        move_it_to (&it, PT, 0, it.last_visible_y, -1,        move_it_to (&it, PT, 0, it.last_visible_y, -1,
9536                    MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y);                    MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y);
9537          
9538        /* With a scroll_margin of 0, scroll_margin_pos is at the window        /* To make point visible, we have to move the window start
9539           end, which is one line below the window.  The iterator's           down so that the line the cursor is in is visible, which
9540           current_y will be same as y0 in that case, but we have to           means we have to add in the height of the cursor line.  */
9541           scroll a line to make PT visible.  That's the reason why 1 is        dy = line_bottom_y (&it) - y0;
          added below.  */  
       dy = 1 + it.current_y - y0;  
9542                
9543        if (dy > scroll_max)        if (dy > scroll_max)
9544          return SCROLLING_FAILED;          return SCROLLING_FAILED;

Legend:
Removed from v.1.718  
changed lines
  Added in v.1.719

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