diff -Nru htop-3.0.5/debian/changelog htop-3.0.5/debian/changelog --- htop-3.0.5/debian/changelog 2021-02-15 10:09:28.000000000 +0000 +++ htop-3.0.5/debian/changelog 2021-03-01 08:00:00.000000000 +0000 @@ -1,3 +1,9 @@ +htop (3.0.5-6) unstable; urgency=medium + + * Fix cleaning the infoscreen before a next scan + + -- Daniel Lange Mon, 01 Mar 2021 09:00:00 +0100 + htop (3.0.5-5) unstable; urgency=medium * Fix forced sort order when switching to tree mode diff -Nru htop-3.0.5/debian/patches/0015-clean-infoscreen-before-new-scan.patch htop-3.0.5/debian/patches/0015-clean-infoscreen-before-new-scan.patch --- htop-3.0.5/debian/patches/0015-clean-infoscreen-before-new-scan.patch 1970-01-01 00:00:00.000000000 +0000 +++ htop-3.0.5/debian/patches/0015-clean-infoscreen-before-new-scan.patch 2021-02-21 07:12:45.000000000 +0000 @@ -0,0 +1,35 @@ +From d8d83031d9d42d64e89388c842056031c6dad27c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=98ystein=20Hi=C3=A5sen?= +Date: Mon, 15 Feb 2021 20:32:01 +0100 +Subject: [PATCH] InfoScreen: Remove old lines before scanning again + +--- + InfoScreen.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +--- a/InfoScreen.c ++++ b/InfoScreen.c +@@ -145,8 +145,10 @@ + 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 @@ + 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; diff -Nru htop-3.0.5/debian/patches/series htop-3.0.5/debian/patches/series --- htop-3.0.5/debian/patches/series 2021-02-15 10:03:35.000000000 +0000 +++ htop-3.0.5/debian/patches/series 2021-02-21 18:16:16.000000000 +0000 @@ -12,3 +12,4 @@ 0012-fix-forced-sort-order.patch 0013-fix-btime-zero.patch 0014-fix-zfs-coloring.patch +0015-clean-infoscreen-before-new-scan.patch