mirror of https://github.com/xzeldon/htop.git
InfoScreen: Remove old lines before scanning again
This commit is contained in:
parent
1e57cab605
commit
d8d83031d9
|
@ -145,8 +145,10 @@ void InfoScreen_run(InfoScreen* this) {
|
|||
break;
|
||||
case KEY_F(5):
|
||||
clear();
|
||||
if (As_InfoScreen(this)->scan)
|
||||
if (As_InfoScreen(this)->scan) {
|
||||
Vector_prune(this->lines);
|
||||
InfoScreen_scan(this);
|
||||
}
|
||||
|
||||
InfoScreen_draw(this);
|
||||
break;
|
||||
|
@ -161,8 +163,10 @@ void InfoScreen_run(InfoScreen* this) {
|
|||
break;
|
||||
case KEY_RESIZE:
|
||||
Panel_resize(panel, COLS, LINES - 2);
|
||||
if (As_InfoScreen(this)->scan)
|
||||
if (As_InfoScreen(this)->scan) {
|
||||
Vector_prune(this->lines);
|
||||
InfoScreen_scan(this);
|
||||
}
|
||||
|
||||
InfoScreen_draw(this);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue