diff options
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index c3df9ca4159..0cfc1ff3b95 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2470,7 +2470,19 @@ the currently selected frame. */) | |||
| 2470 | #endif | 2470 | #endif |
| 2471 | 2471 | ||
| 2472 | if (FRAMEP (t->display_info.tty->top_frame)) | 2472 | if (FRAMEP (t->display_info.tty->top_frame)) |
| 2473 | FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); | 2473 | { |
| 2474 | struct frame *f = XFRAME (t->display_info.tty->top_frame); | ||
| 2475 | int width, height; | ||
| 2476 | int old_height = FRAME_COLS (f); | ||
| 2477 | int old_width = FRAME_LINES (f); | ||
| 2478 | |||
| 2479 | /* Check if terminal/window size has changed while the frame | ||
| 2480 | was suspended. */ | ||
| 2481 | get_tty_size (fileno (t->display_info.tty->input), &width, &height); | ||
| 2482 | if (width != old_width || height != old_height) | ||
| 2483 | change_frame_size (f, height, width, 0, 0, 0); | ||
| 2484 | FRAME_SET_VISIBLE (XFRAME (t->display_info.tty->top_frame), 1); | ||
| 2485 | } | ||
| 2474 | 2486 | ||
| 2475 | init_sys_modes (t->display_info.tty); | 2487 | init_sys_modes (t->display_info.tty); |
| 2476 | 2488 | ||