Sync OpenBSD patchset 1016:

Enforce history-limit option when clearing the screen, memory leak
spotted by R I Pienaar.
pull/1/head
Tiago Cunha 2012-01-31 11:58:55 +00:00
parent e4a7cefe0c
commit c08a532440
1 changed files with 3 additions and 1 deletions

View File

@ -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. */