/[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.671.4.17 by gerd, Wed Dec 12 13:46:00 2001 UTC revision 1.671.4.18 by gerd, Fri Dec 28 12:44:07 2001 UTC
# Line 9485  try_scrolling (window, just_this_one_p, Line 9485  try_scrolling (window, just_this_one_p,
9485        y0 = it.current_y;        y0 = it.current_y;
9486        move_it_to (&it, PT, 0, it.last_visible_y, -1,        move_it_to (&it, PT, 0, it.last_visible_y, -1,
9487                    MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y);                    MOVE_TO_POS | MOVE_TO_X | MOVE_TO_Y);
9488          
9489        /* With a scroll_margin of 0, scroll_margin_pos is at the window        /* To make point visible, we have to move the window start
9490           end, which is one line below the window.  The iterator's           down so that the line the cursor is in is visible, which
9491           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.  */
9492           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;  
9493                
9494        if (dy > scroll_max)        if (dy > scroll_max)
9495          return SCROLLING_FAILED;          return SCROLLING_FAILED;

Legend:
Removed from v.1.671.4.17  
changed lines
  Added in v.1.671.4.18

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