From 4255903c2a501ad4ec1eda9e15f51bc5416480a2 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Thu, 13 Jun 2013 02:23:39 -0400 Subject: [PATCH] Enforce TMATE_HLIMIT on the first pane properly --- tmate-decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmate-decoder.c b/tmate-decoder.c index 42b5283a..5c207126 100644 --- a/tmate-decoder.c +++ b/tmate-decoder.c @@ -171,6 +171,9 @@ static void tmate_sync_windows(struct session *s, wl = winlink_find_by_index(&s->windows, idx); if (!wl) { + /* Avoid memory bloats with the scroll buffer */ + options_set_number(&s->options, + "history-limit", TMATE_HLIMIT); wl = session_new(s, name, "", NULL, idx, &cause); if (!wl) tmate_fatal("can't create window idx=%d", idx);