Commit 8b51f1e3 authored by Karl Heuer's avatar Karl Heuer
Browse files

(redisplay): Don't move the cursor if it's supposed to

be in the echo area.
parent 5f7fc6cf
...@@ -898,10 +898,12 @@ redisplay () ...@@ -898,10 +898,12 @@ redisplay ()
} }
goto update; goto update;
} }
/* If highlighting the region, we can't just move the cursor. */ /* If highlighting the region, or if the cursor is in the echo area,
then we can't just move the cursor. */
else if (! (!NILP (Vtransient_mark_mode) else if (! (!NILP (Vtransient_mark_mode)
&& !NILP (current_buffer->mark_active)) && !NILP (current_buffer->mark_active))
&& NILP (w->region_showing)) && NILP (w->region_showing)
&& !cursor_in_echo_area)
{ {
pos = *compute_motion (tlbufpos, 0, pos = *compute_motion (tlbufpos, 0,
XINT (w->hscroll) ? 1 - XINT (w->hscroll) : 0, XINT (w->hscroll) ? 1 - XINT (w->hscroll) : 0,
......
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