mirror of https://github.com/xzeldon/htop.git
Merge branch 'fix-duplicate-lines' of hiasen/htop
This commit is contained in:
commit
e0dec39203
|
@ -145,8 +145,10 @@ void InfoScreen_run(InfoScreen* this) {
|
||||||
break;
|
break;
|
||||||
case KEY_F(5):
|
case KEY_F(5):
|
||||||
clear();
|
clear();
|
||||||
if (As_InfoScreen(this)->scan)
|
if (As_InfoScreen(this)->scan) {
|
||||||
|
Vector_prune(this->lines);
|
||||||
InfoScreen_scan(this);
|
InfoScreen_scan(this);
|
||||||
|
}
|
||||||
|
|
||||||
InfoScreen_draw(this);
|
InfoScreen_draw(this);
|
||||||
break;
|
break;
|
||||||
|
@ -161,8 +163,10 @@ void InfoScreen_run(InfoScreen* this) {
|
||||||
break;
|
break;
|
||||||
case KEY_RESIZE:
|
case KEY_RESIZE:
|
||||||
Panel_resize(panel, COLS, LINES - 2);
|
Panel_resize(panel, COLS, LINES - 2);
|
||||||
if (As_InfoScreen(this)->scan)
|
if (As_InfoScreen(this)->scan) {
|
||||||
|
Vector_prune(this->lines);
|
||||||
InfoScreen_scan(this);
|
InfoScreen_scan(this);
|
||||||
|
}
|
||||||
|
|
||||||
InfoScreen_draw(this);
|
InfoScreen_draw(this);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue