From e3ea3a51e67a51bfcd1b4f7f53ded25fd3a0507a Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 13 Jul 2005 09:36:12 +0000 Subject: [PATCH] (cursor_row_fully_visible_p): Allow partially visible row in minibuffer windows. (try_window): Don't check margins in minibuffer windows. --- src/xdisp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 5ed987cf84d..adb19b28ec4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; -- 2.39.5