mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-23 23:29:15 +01:00
Enforce history-limit option when clearing the screen, memory leak
spotted by R I Pienaar.
This commit is contained in:
parent
230d0fbc9e
commit
937173ff11
@ -94,8 +94,10 @@ grid_view_clear_history(struct grid *gd)
|
||||
return;
|
||||
|
||||
/* Scroll the lines into the history. */
|
||||
for (yy = 0; yy < last; yy++)
|
||||
for (yy = 0; yy < last; yy++) {
|
||||
grid_collect_history(gd);
|
||||
grid_scroll_history(gd);
|
||||
}
|
||||
}
|
||||
|
||||
/* Clear area. */
|
||||
|
Loading…
Reference in New Issue
Block a user