comparison src/xdisp.c @ 24557:7bc142e9e59f

(redisplay_window): When we call compute_motion with HPOS got from w->last_point_x, call it with DID_MOTION 1. (display_text_line): Stop the loop for processing overlay strings when we reach the right edge of the window.
author Kenichi Handa <handa@m17n.org>
date Fri, 02 Apr 1999 16:35:33 +0000
parents 6dbea1df5686
children ba5632c9721a
comparison
equal deleted inserted replaced
24556:cfdf441b1331 24557:7bc142e9e59f
2087 int last_point = XFASTINT (w->last_point); 2087 int last_point = XFASTINT (w->last_point);
2088 int last_point_byte = CHAR_TO_BYTE (last_point); 2088 int last_point_byte = CHAR_TO_BYTE (last_point);
2089 int tab_offset = (pos_tab_offset (w, last_point, last_point_byte) 2089 int tab_offset = (pos_tab_offset (w, last_point, last_point_byte)
2090 - (last_point_x + hscroll - !! hscroll)); 2090 - (last_point_x + hscroll - !! hscroll));
2091 2091
2092 pos = *compute_motion (last_point, last_point_y, last_point_x, 0, 2092 pos = *compute_motion (last_point, last_point_y, last_point_x, 1,
2093 PT, height, 2093 PT, height,
2094 /* BUG FIX: See the comment of 2094 /* BUG FIX: See the comment of
2095 Fpos_visible_in_window_p (window.c). */ 2095 Fpos_visible_in_window_p (window.c). */
2096 - (1 << (BITS_PER_SHORT - 1)), 2096 - (1 << (BITS_PER_SHORT - 1)),
2097 width, hscroll, 2097 width, hscroll,
3455 { 3455 {
3456 /* Skip the ones we did in a previous line. */ 3456 /* Skip the ones we did in a previous line. */
3457 ovstr += ovstr_done; 3457 ovstr += ovstr_done;
3458 ovlen -= ovstr_done; 3458 ovlen -= ovstr_done;
3459 3459
3460 while (ovlen > 0) 3460 while (ovlen > 0 && p1 < endp)
3461 { 3461 {
3462 int charset, cols; 3462 int charset, cols;
3463 GLYPH g; 3463 GLYPH g;
3464 3464
3465 if (multibyte) 3465 if (multibyte)