call clear() function when SIGWINCH is received. (#660)

This commit is contained in:
guoci 2018-02-17 13:25:57 -05:00 committed by Hisham Muhammad
parent 70ed51a303
commit 5fca258f33
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ static Htop_Reaction sortBy(State* st) {
// ----------------------------------------
static Htop_Reaction actionResize(State* st) {
clear();
Panel_resize(st->panel, COLS, LINES-(st->panel->y)-1);
return HTOP_REDRAW_BAR;
}