/[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.16 by schwab, Sun Dec 9 15:28:50 2001 UTC revision 1.671.4.17 by gerd, Wed Dec 12 13:46:00 2001 UTC
# Line 5377  move_it_vertically_backward (it, dy) Line 5377  move_it_vertically_backward (it, dy)
5377        int y0 = it3.current_y;        int y0 = it3.current_y;
5378        int y1 = line_bottom_y (&it3);        int y1 = line_bottom_y (&it3);
5379        int line_height = y1 - y0;        int line_height = y1 - y0;
5380          
5381        /* If we did not reach target_y, try to move further backward if        /* If we did not reach target_y, try to move further backward if
5382           we can.  If we moved too far backward, try to move forward.  */           we can.  If we moved too far backward, try to move forward.  */
5383        if (target_y < it->current_y        if (target_y < it->current_y
# Line 5388  move_it_vertically_backward (it, dy) Line 5388  move_it_vertically_backward (it, dy)
5388            && it->current_y - target_y > line_height / 3 * 2            && it->current_y - target_y > line_height / 3 * 2
5389            && IT_CHARPOS (*it) > BEGV)            && IT_CHARPOS (*it) > BEGV)
5390          {          {
5391              TRACE_MOVE ((stderr, "  not far enough -> move_vert %d\n",
5392                           target_y - it->current_y));
5393            move_it_vertically (it, target_y - it->current_y);            move_it_vertically (it, target_y - it->current_y);
5394            xassert (IT_CHARPOS (*it) >= BEGV);            xassert (IT_CHARPOS (*it) >= BEGV);
5395          }          }
5396        else if (target_y >= it->current_y + line_height        else if (target_y >= it->current_y + line_height
5397                 && IT_CHARPOS (*it) < ZV)                 && IT_CHARPOS (*it) < ZV)
5398          {          {
5399            move_it_vertically (it, target_y - (it->current_y + line_height));            /* Should move forward by at least one line, maybe more.  */
5400              do
5401                {
5402                  move_it_by_lines (it, 1, 1);
5403                }
5404              while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV);
5405    
5406            xassert (IT_CHARPOS (*it) >= BEGV);            xassert (IT_CHARPOS (*it) >= BEGV);
5407          }          }
5408      }      }

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

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