Mercurial > emacs
diff src/dispnew.c @ 101690:1009d5607716
* dispnew.c (window_change_signal): Don't try to get the size of a
suspended tty frame.
* term.c (Fresume_tty): Resize if the size has changed while the
tty was suspended.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Fri, 30 Jan 2009 23:45:27 +0000 |
parents | f34b82b3a6e0 |
children | 40a6ace09cb5 |
line wrap: on
line diff
--- a/src/dispnew.c Fri Jan 30 23:43:20 2009 +0000 +++ b/src/dispnew.c Fri Jan 30 23:45:27 2009 +0000 @@ -6218,6 +6218,11 @@ if (! tty->term_initted) continue; + /* Suspended tty frames have tty->input == NULL avoid trying to + use it. */ + if (!tty->input) + continue; + get_tty_size (fileno (tty->input), &width, &height); if (width > 5 && height > 2) {