# HG changeset patch # User Kim F. Storm # Date 1014764108 0 # Node ID 250eb7f4849d5460129e47c83eb3ecb5894e825a # Parent b14fc05f010f2c6e8b1c208c84b786d4f14ce13e (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. diff -r b14fc05f010f -r 250eb7f4849d src/xdisp.c --- 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);