From: Gerd Moellmann Date: Wed, 17 Jan 2001 12:59:47 +0000 (+0000) Subject: (redisplay_tool_bar): Change tool bar's height when X-Git-Tag: emacs-pretest-21.0.96~250 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e33e6f09744dccdf8dc23db37fc468bcaa47f44;p=emacs.git (redisplay_tool_bar): Change tool bar's height when not everything could be displayed. --- 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