tcsh/tcsh-6.14.00-unprintable.patch
Pavel Raiskup 97c6af701c spec: move to %autosetup
Version: 6.18.01-12
2014-08-27 16:32:53 +02:00

30 lines
894 B
Diff

From 73c378eee326ea117c7acc4655e89529a4171f92 Mon Sep 17 00:00:00 2001
From: vcrhonek <vcrhonek@fedoraproject.org>
Date: Wed, 27 Aug 2014 13:36:26 +0200
Subject: [PATCH 03/14] fix unprintable
original dist-git commit: cd7e072c
Resolves: #233525
---
tw.parse.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tw.parse.c b/tw.parse.c
index dc32dba..d05ceb8 100644
--- a/tw.parse.c
+++ b/tw.parse.c
@@ -2169,7 +2169,8 @@ print_by_column(Char *dir, Char *items[], int count, int no_file_suffix)
(Strchr(val, 'x') != NULL);
for (i = 0; i < count; i++) { /* find widest string */
- maxwidth = max(maxwidth, (unsigned int) NLSStringWidth(items[i]));
+ if (NLSStringWidth(items[i]) != -1)
+ maxwidth = max(maxwidth, (unsigned int) NLSStringWidth(items[i]));
}
maxwidth += no_file_suffix ? 1 : 2; /* for the file tag and space */
--
1.9.3