changeset 21290:2601d6057ec6

(redisplay_window): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Thu, 26 Mar 1998 04:10:02 +0000
parents 1c0712c77155
children b039d32d8399
files src/xdisp.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Wed Mar 25 19:16:31 1998 +0000
+++ b/src/xdisp.c	Thu Mar 26 04:10:02 1998 +0000
@@ -2031,14 +2031,16 @@
 		  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