=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.286 retrieving revision 1.287 diff -c -r1.286 -r1.287 *** src/usr.bin/tmux/tty.c 2017/05/31 08:43:44 1.286 --- src/usr.bin/tmux/tty.c 2017/05/31 10:29:15 1.287 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.286 2017/05/31 08:43:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.287 2017/05/31 10:29:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 120,126 **** return (0); } ! int tty_resize(struct tty *tty) { struct client *c = tty->client; --- 120,126 ---- return (0); } ! void tty_resize(struct tty *tty) { struct client *c = tty->client; *************** *** 139,159 **** sy = 24; } log_debug("%s: %s now %ux%u", __func__, c->name, sx, sy); ! ! if (!tty_set_size(tty, sx, sy)) ! return (0); tty_invalidate(tty); - return (1); } ! int tty_set_size(struct tty *tty, u_int sx, u_int sy) { - if (sx == tty->sx && sy == tty->sy) - return (0); tty->sx = sx; tty->sy = sy; - return (1); } static void --- 139,153 ---- sy = 24; } log_debug("%s: %s now %ux%u", __func__, c->name, sx, sy); ! tty_set_size(tty, sx, sy); tty_invalidate(tty); } ! void tty_set_size(struct tty *tty, u_int sx, u_int sy) { tty->sx = sx; tty->sy = sy; } static void