changeset 43575:250eb7f4849d

(init_iterator): Compare with Vminibuf_selected_window 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.
author Kim F. Storm <storm@cua.dk>
date Tue, 26 Feb 2002 22:55:08 +0000
parents b14fc05f010f
children ee6bbabd723e
files src/xdisp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Feb 26 22:53:47 2002 +0000
+++ b/src/xdisp.c	Tue Feb 26 22:55:08 2002 +0000
@@ -1582,8 +1582,8 @@
 	  /* 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);