From 0130fe1af34ca3ab4b9ad6da2ac00409772d93f0 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 26 Jan 2001 20:02:19 +0000 Subject: [PATCH] (size_window): Set the window's orig_top to nil when changing heights, so that a future shrink_mini_window won't restore a bogus height. --- src/ChangeLog | 4 ++++ src/window.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 5229e927211..929096d98ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2001-01-26 Gerd Moellmann + * window.c (size_window): Set the window's orig_top to nil when + changing heights, so that a future shrink_mini_window won't + restore a bogus height. + * frame.c (do_switch_frame): If selected frame has a mini-window, resize that to exact size. diff --git a/src/window.c b/src/window.c index e507254f8c0..1b6ac07955d 100644 --- a/src/window.c +++ b/src/window.c @@ -2445,6 +2445,7 @@ size_window (window, size, width_p, nodelete_p) sideward = &w->hchild; forward = &w->vchild; w->height = make_number (size); + w->orig_height = Qnil; } if (!NILP (*sideward)) @@ -3803,6 +3804,8 @@ shrink_mini_window (w) } else if (XFASTINT (w->height) > 1) { + /* Distribute the additional lines of the mini-window + among the other windows. */ Lisp_Object window; XSETWINDOW (window, w); enlarge_window (window, 1 - XFASTINT (w->height), 0); -- 2.39.2