]> code.delx.au - gnu-emacs/commitdiff
(redisplay_tool_bar): Change tool bar's height when
authorGerd Moellmann <gerd@gnu.org>
Wed, 17 Jan 2001 12:59:47 +0000 (12:59 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 17 Jan 2001 12:59:47 +0000 (12:59 +0000)
not everything could be displayed.

src/xdisp.c

index 62211e3890c3ee9112273e01124eca00a9b0d95e..15f950c5e778a246b155a63ea520aeb223ae73d2 100644 (file)
@@ -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