diff options
| author | Gerd Moellmann | 2001-01-17 12:59:47 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-01-17 12:59:47 +0000 |
| commit | 6e33e6f09744dccdf8dc23db37fc468bcaa47f44 (patch) | |
| tree | 91b430c0d2a7a2f1c7ed118c61e6b01cb59c877f /src | |
| parent | 51446987ae3dfdeb2851a15945b42a9dfd82475a (diff) | |
| download | emacs-6e33e6f09744dccdf8dc23db37fc468bcaa47f44.tar.gz emacs-6e33e6f09744dccdf8dc23db37fc468bcaa47f44.zip | |
(redisplay_tool_bar): Change tool bar's height when
not everything could be displayed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
| 7460 | if (auto_resize_tool_bars_p) | 7460 | if (auto_resize_tool_bars_p) |
| 7461 | { | 7461 | { |
| 7462 | int nlines; | 7462 | int nlines; |
| 7463 | |||
| 7464 | /* If we couldn't display everything, change the tool-bar's | ||
| 7465 | height. */ | ||
| 7466 | if (IT_STRING_CHARPOS (it) < it.end_charpos) | ||
| 7467 | change_height_p = 1; | ||
| 7463 | 7468 | ||
| 7464 | /* If there are blank lines at the end, except for a partially | 7469 | /* If there are blank lines at the end, except for a partially |
| 7465 | visible blank line at the end that is smaller than | 7470 | visible blank line at the end that is smaller than |