]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Thu, 26 Mar 1998 04:10:02 +0000 (04:10 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 26 Mar 1998 04:10:02 +0000 (04:10 +0000)
src/xdisp.c

index bc8d75e349a7489888ed680e08207aa15f312ecc..9c881cb8b952f0d86ef244fe9a0725bfa0d13dee 100644 (file)
@@ -2031,14 +2031,16 @@ redisplay_window (window, just_this_one, preserve_echo_area)
                  clipped to the window edges.  */
               && !(last_point_x <= 0 && hscroll))
        {
-         pos = *compute_motion (XFASTINT (w->last_point),
-                                last_point_y, last_point_x, 0,
+         int last_point = XFASTINT (w->last_point);
+         int last_point_byte = CHAR_TO_BYTE (last_point);
+
+         pos = *compute_motion (last_point, last_point_y, last_point_x, 0,
                                 PT, height,
                                 /* BUG FIX: See the comment of
                                    Fpos_visible_in_window_p (window.c).  */
                                 - (1 << (BITS_PER_SHORT - 1)),
                                 width, hscroll,
-                                pos_tab_offset (w, startp, startp_byte),
+                                pos_tab_offset (w, last_point, last_point_byte),
                                 w);
        }
       else