]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay): Don't move the cursor if it's supposed to
authorKarl Heuer <kwzh@gnu.org>
Mon, 1 May 1995 23:12:19 +0000 (23:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 1 May 1995 23:12:19 +0000 (23:12 +0000)
be in the echo area.

src/xdisp.c

index d6881d42e154e6b76a9b5deb20d77aec1237297a..1fa29343966648e075cd459a012b7a3abd50b286 100644 (file)
@@ -898,10 +898,12 @@ redisplay ()
            }
          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)
                  && !NILP (current_buffer->mark_active))
-              && NILP (w->region_showing))
+              && NILP (w->region_showing)
+              && !cursor_in_echo_area)
        {
          pos = *compute_motion (tlbufpos, 0,
                                 XINT (w->hscroll) ? 1 - XINT (w->hscroll) : 0,