aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/0015-clean-infoscreen-before-new-scan.patch
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-02-21 10:37:44 +0100
committerDaniel Lange <DLange@git.local>2021-03-01 09:10:18 +0100
commit3243268ab42420a032107bb7fd5b4db242f4062b (patch)
tree175fde9eb67165eb3d9eb9cb62a508cdbe75d038 /debian/patches/0015-clean-infoscreen-before-new-scan.patch
parenta0746c81eb538ba011cdfcca1a535e2bd41dc044 (diff)
downloaddebian_htop-f474238ce5c311a3418b901e5173de0077668979.tar.gz
debian_htop-f474238ce5c311a3418b901e5173de0077668979.tar.bz2
debian_htop-f474238ce5c311a3418b901e5173de0077668979.zip
Add clean infoscreen patch, release 3.0.5-6debian/3.0.5-6
Diffstat (limited to 'debian/patches/0015-clean-infoscreen-before-new-scan.patch')
-rw-r--r--debian/patches/0015-clean-infoscreen-before-new-scan.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/0015-clean-infoscreen-before-new-scan.patch b/debian/patches/0015-clean-infoscreen-before-new-scan.patch
new file mode 100644
index 0000000..8ba234c
--- /dev/null
+++ b/debian/patches/0015-clean-infoscreen-before-new-scan.patch
@@ -0,0 +1,35 @@
+From d8d83031d9d42d64e89388c842056031c6dad27c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=C3=98ystein=20Hi=C3=A5sen?= <oystein.hiaasen@gmail.com>
+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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy