Commit e8e536a9 authored by Karl Heuer's avatar Karl Heuer
Browse files

(try_window_id): Don't use XFASTINT as an lvalue.

parent e33f7330
......@@ -1590,7 +1590,8 @@ try_window_id (window)
if (i == xp.bufpos)
return -2;
XFASTINT (w->window_end_vpos) += scroll_amount;
XSETFASTINT (w->window_end_vpos,
XFASTINT (w->window_end_vpos) + scroll_amount);
/* Before doing any scrolling, verify that point will be on frame. */
if (PT > ep.bufpos && !(PT <= xp.bufpos && xp.bufpos < height))
......@@ -1796,7 +1797,8 @@ try_window_id (window)
val = *vmotion (Z - XFASTINT (w->window_end_pos),
delta, width, hscroll, window);
XSETFASTINT (w->window_end_pos, Z - val.bufpos);
XFASTINT (w->window_end_vpos) += val.vpos;
XSETFASTINT (w->window_end_vpos,
XFASTINT (w->window_end_vpos) + val.vpos);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment