]> git.eshelyaron.com Git - emacs.git/commitdiff
(cursor_row_fully_visible_p): Allow partially visible
authorKim F. Storm <storm@cua.dk>
Wed, 13 Jul 2005 09:36:12 +0000 (09:36 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 13 Jul 2005 09:36:12 +0000 (09:36 +0000)
row in minibuffer windows.
(try_window): Don't check margins in minibuffer windows.

src/xdisp.c

index 5ed987cf84d408996cd344d7c27f18072f2a3b65..adb19b28ec460f94f56930a21d48f91defbda4fd 100644 (file)
@@ -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;