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:
parent
a43d35c137
commit
4255903c2a
@ -171,6 +171,9 @@ static void tmate_sync_windows(struct session *s,
|
|||||||
|
|
||||||
wl = winlink_find_by_index(&s->windows, idx);
|
wl = winlink_find_by_index(&s->windows, idx);
|
||||||
if (!wl) {
|
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);
|
wl = session_new(s, name, "", NULL, idx, &cause);
|
||||||
if (!wl)
|
if (!wl)
|
||||||
tmate_fatal("can't create window idx=%d", idx);
|
tmate_fatal("can't create window idx=%d", idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user