mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
(redisplay_window): Don't use shortcut if window_end_vpos is out of date.
This commit is contained in:
parent
eb28595580
commit
15495c7324
1 changed files with 3 additions and 0 deletions
|
|
@ -1141,6 +1141,9 @@ redisplay_window (window, just_this_one)
|
|||
/* Can't use this case if highlighting a region. */
|
||||
&& !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
|
||||
&& NILP (w->region_showing)
|
||||
/* If end pos is out of date, scroll bar and percentage will be wrong */
|
||||
&& INTEGERP (w->window_end_vpos)
|
||||
&& XFASTINT (w->window_end_vpos) < XFASTINT (w->height)
|
||||
&& !EQ (window, minibuf_window))
|
||||
{
|
||||
pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue