comparison src/xdisp.c @ 22011:e849b602b425

(redisplay_window): Don't use last_point_x and last_point_y if cursor_in_echo_area.
author Richard M. Stallman <rms@gnu.org>
date Sun, 10 May 1998 00:40:00 +0000
parents 1bae35c78db2
children 484c9b2f6308
comparison
equal deleted inserted replaced
22010:547e4c0a42c0 22011:e849b602b425
2035 int last_point_x = (XFASTINT (w->last_point_x) - WINDOW_LEFT_MARGIN (w)); 2035 int last_point_x = (XFASTINT (w->last_point_x) - WINDOW_LEFT_MARGIN (w));
2036 2036
2037 /* Find where PT is located now on the frame. */ 2037 /* Find where PT is located now on the frame. */
2038 /* Check just_this_one as a way of verifying that the 2038 /* Check just_this_one as a way of verifying that the
2039 window edges have not changed. */ 2039 window edges have not changed. */
2040 if (PT == XFASTINT (w->last_point) && just_this_one) 2040 if (PT == XFASTINT (w->last_point) && just_this_one
2041 /* If CURSOR_IN_ECHO_AREA, last_point_x and last_point_y
2042 refer to the echo area and are not related to this window. */
2043 && ! cursor_in_echo_area)
2041 { 2044 {
2042 pos.hpos = last_point_x; 2045 pos.hpos = last_point_x;
2043 pos.vpos = last_point_y; 2046 pos.vpos = last_point_y;
2044 pos.bufpos = PT; 2047 pos.bufpos = PT;
2045 } 2048 }
2046 else if (PT > XFASTINT (w->last_point) 2049 else if (PT > XFASTINT (w->last_point)
2050 && ! cursor_in_echo_area
2047 && XFASTINT (w->last_point) > startp && just_this_one 2051 && XFASTINT (w->last_point) > startp && just_this_one
2048 /* We can't use this if point is in the left margin of a 2052 /* We can't use this if point is in the left margin of a
2049 hscrolled window, because w->last_point_x has been 2053 hscrolled window, because w->last_point_x has been
2050 clipped to the window edges. */ 2054 clipped to the window edges. */
2051 && !(last_point_x <= 0 && hscroll)) 2055 && !(last_point_x <= 0 && hscroll))