aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-small-terminals.patch
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2018-02-17 19:21:52 +0200
committerGraham Inggs <ginggs@debian.org>2018-02-17 19:21:52 +0200
commit3246f46de6879f1c2a0fd056bccda1a4a0400388 (patch)
tree12833519513d83d81969733ce12b7f488db5acf4 /debian/patches/fix-small-terminals.patch
parent11f2c5337f5fc504f1676551943986aa5384f0e4 (diff)
downloaddebian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.gz
debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.bz2
debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.zip
Fix issue with small terminals
Diffstat (limited to 'debian/patches/fix-small-terminals.patch')
-rw-r--r--debian/patches/fix-small-terminals.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/fix-small-terminals.patch b/debian/patches/fix-small-terminals.patch
new file mode 100644
index 0000000..4f03732
--- /dev/null
+++ b/debian/patches/fix-small-terminals.patch
@@ -0,0 +1,18 @@
+Description: Fix issue with small terminals
+Bug: https://github.com/hishamhm/htop/issues/733
+Bug-Debian: https://bugs.debian.org/889693
+Origin: upstream,https://github.com/hishamhm/htop/commit/b544c22c72613d561180738d8c31c97712b3c0ef
+Author: Hisham Muhammad <hisham@gobolinux.org>
+Last-Update: 2018-02-13
+
+--- a/Meter.c
++++ b/Meter.c
+@@ -287,7 +287,7 @@
+
+ int blockSizes[10];
+
+- xSnprintf(bar, w + 1, "%*s", w, buffer);
++ xSnprintf(bar, w + 1, "%*.*s", w, w, buffer);
+
+ // First draw in the bar[] buffer...
+ int offset = 0;

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