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.
/* 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);