]> code.delx.au - gnu-emacs/commitdiff
(redisplay_window): When we call compute_motion with
authorKenichi Handa <handa@m17n.org>
Fri, 2 Apr 1999 16:35:33 +0000 (16:35 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 2 Apr 1999 16:35:33 +0000 (16:35 +0000)
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.

src/xdisp.c

index 2bc181bbab02995ab5d99e7c2ecf2e1a07c9120d..da6ec5e280bafc98286d007cd25120169c111f75 100644 (file)
@@ -2089,7 +2089,7 @@ redisplay_window (window, just_this_one, preserve_echo_area)
          int tab_offset = (pos_tab_offset (w, last_point, last_point_byte)
                            - (last_point_x + hscroll - !! hscroll));
 
-         pos = *compute_motion (last_point, last_point_y, last_point_x, 0,
+         pos = *compute_motion (last_point, last_point_y, last_point_x, 1,
                                 PT, height,
                                 /* BUG FIX: See the comment of 
                                    Fpos_visible_in_window_p (window.c).  */
@@ -3457,7 +3457,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done)
                      ovstr += ovstr_done;
                      ovlen -= ovstr_done;
 
-                     while (ovlen > 0)
+                     while (ovlen > 0 && p1 < endp)
                        {
                          int charset, cols;
                          GLYPH g;