row in minibuffer windows.
(try_window): Don't check margins in minibuffer windows.
window_height = window_box_height (w);
if (row->height >= window_height)
{
- if (!force_p || w->vscroll)
+ if (!force_p || MINI_WINDOW_P (w) || w->vscroll)
return 1;
}
return 0;
}
/* Don't let the cursor end in the scroll margins. */
- if (check_margins)
+ if (check_margins
+ && !MINI_WINDOW_P (w))
{
int this_scroll_margin, cursor_height;