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

Diff of /emacs/src/window.c

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

revision 1.492 by kfstorm, Sat Jan 22 01:41:47 2005 UTC revision 1.493 by kfstorm, Sun Jan 23 00:50:24 2005 UTC
# Line 4628  window_scroll_pixel_based (window, n, wh Line 4628  window_scroll_pixel_based (window, n, wh
4628        if (dy <= 0)        if (dy <= 0)
4629          move_it_vertically_backward (&it, -dy);          move_it_vertically_backward (&it, -dy);
4630        else if (dy > 0)        else if (dy > 0)
4631          move_it_to (&it, ZV, -1, it.current_y + dy, -1,          {
4632                      MOVE_TO_POS | MOVE_TO_Y);            int start_pos = IT_CHARPOS (it);
4633              move_it_to (&it, ZV, -1, it.current_y + dy, -1,
4634                          MOVE_TO_POS | MOVE_TO_Y);
4635              /* Ensure we actually does move, e.g. in case we are currently
4636                 looking at an image that is taller that the window height.  */
4637              while (start_pos == IT_CHARPOS (it)
4638                     && start_pos < ZV)
4639                move_it_by_lines (&it, 1, 1);
4640            }
4641      }      }
4642    else    else
4643      move_it_by_lines (&it, n, 1);      move_it_by_lines (&it, n, 1);

Legend:
Removed from v.1.492  
changed lines
  Added in v.1.493

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