1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Enforce TMATE_HLIMIT on the first pane properly

This commit is contained in:
Nicolas Viennot 2013-06-13 02:23:39 -04:00
parent a43d35c137
commit 4255903c2a

View File

@ -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);