]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_iterator): Compare with Vminibuf_selected_window
authorKim F. Storm <storm@cua.dk>
Tue, 26 Feb 2002 22:55:08 +0000 (22:55 +0000)
committerKim F. Storm <storm@cua.dk>
Tue, 26 Feb 2002 22:55:08 +0000 (22:55 +0000)
instead of Vminibuf_scroll_window when deciding in which window
the region should be highlighted.  Consequently, the region remains
highlighted even when a completion buffer is also displayed.

src/xdisp.c

index 3766f0b5219cdb593c76a71a8479b171992fef6c..d06e5e1aecfafa9268d38be3c3241c6246d290ac 100644 (file)
@@ -1582,8 +1582,8 @@ init_iterator (it, w, charpos, bytepos, row, base_face_id)
          /* Or show the region if we are in the mini-buffer and W is
             the window the mini-buffer refers to.  */
          || (MINI_WINDOW_P (XWINDOW (selected_window))
-             && WINDOWP (Vminibuf_scroll_window)
-             && w == XWINDOW (Vminibuf_scroll_window))))
+             && WINDOWP (Vminibuf_selected_window)
+             && w == XWINDOW (Vminibuf_selected_window))))
     {
       int charpos = marker_position (current_buffer->mark);
       it->region_beg_charpos = min (PT, charpos);