From c570977df3b77a6b9125ef5e1b8c64820f43b920 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Tue, 29 Sep 2015 03:16:07 -0400 Subject: [PATCH] Sending modes as well --- tmate-master.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmate-master.c b/tmate-master.c index 4b505c70..f0d2f86f 100644 --- a/tmate-master.c +++ b/tmate-master.c @@ -33,13 +33,15 @@ static void do_snapshot(struct tmate_unpacker *uk, screen = &pane->base; grid = screen->grid; - pack(array, 3); + pack(array, 4); pack(int, pane->id); pack(array, 2); pack(int, screen->cx); pack(int, screen->cy); + pack(unsigned_int, screen->mode); + max_lines = max_history_lines + grid->sy; #define grid_num_lines(grid) (grid->hsize + grid->sy)