Commit e3ea3a51 authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(cursor_row_fully_visible_p): Allow partially visible

row in minibuffer windows.
(try_window): Don't check margins in minibuffer windows.
parent 098e1273
......@@ -11294,7 +11294,7 @@ cursor_row_fully_visible_p (w, force_p, current_matrix_p)
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;
......@@ -12729,7 +12729,8 @@ try_window (window, pos, check_margins)
}
 
/* 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;
 
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment