diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-01-31 11:58:55 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-01-31 11:58:55 +0000 |
commit | c08a532440a5aeeed58ce10b8e4ac9a409555ea7 (patch) | |
tree | 33c60f12074083d5a456eaa30b647df987c7cb72 | |
parent | e4a7cefe0c1e9c61ea6c1510f67ce163cf25616e (diff) | |
download | rtmux-c08a532440a5aeeed58ce10b8e4ac9a409555ea7.tar.gz rtmux-c08a532440a5aeeed58ce10b8e4ac9a409555ea7.tar.bz2 rtmux-c08a532440a5aeeed58ce10b8e4ac9a409555ea7.zip |
Sync OpenBSD patchset 1016:
Enforce history-limit option when clearing the screen, memory leak
spotted by R I Pienaar.
-rw-r--r-- | grid-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grid-view.c b/grid-view.c index 6c7686d4..4afb9d8c 100644 --- a/grid-view.c +++ b/grid-view.c @@ -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. */ |