mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-13 17:38:15 +01:00
Reset tty saved data on resize.
This commit is contained in:
parent
ac8ae1250a
commit
9690d9d5f1
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server-msg.c,v 1.58 2009-01-18 12:09:42 nicm Exp $ */
|
/* $Id: server-msg.c,v 1.59 2009-01-18 21:26:44 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -226,6 +226,11 @@ server_msg_fn_resize(struct hdr *hdr, struct client *c)
|
|||||||
if (c->sy == 0)
|
if (c->sy == 0)
|
||||||
c->sy = 25;
|
c->sy = 25;
|
||||||
|
|
||||||
|
c->tty.cx = UINT_MAX;
|
||||||
|
c->tty.cy = UINT_MAX;
|
||||||
|
c->tty.rupper = UINT_MAX;
|
||||||
|
c->tty.rlower = UINT_MAX;
|
||||||
|
|
||||||
recalculate_sizes();
|
recalculate_sizes();
|
||||||
|
|
||||||
/* Always redraw this client. */
|
/* Always redraw this client. */
|
||||||
|
Loading…
Reference in New Issue
Block a user