From 6e33e6f09744dccdf8dc23db37fc468bcaa47f44 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 17 Jan 2001 12:59:47 +0000 Subject: [PATCH] (redisplay_tool_bar): Change tool bar's height when not everything could be displayed. --- src/xdisp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 62211e3890c..15f950c5e77 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7460,6 +7460,11 @@ redisplay_tool_bar (f) if (auto_resize_tool_bars_p) { int nlines; + + /* If we couldn't display everything, change the tool-bar's + height. */ + if (IT_STRING_CHARPOS (it) < it.end_charpos) + change_height_p = 1; /* If there are blank lines at the end, except for a partially visible blank line at the end that is smaller than -- 2.39.5