]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: remove unnecessary code
authorKarel Zak <kzak@redhat.com>
Mon, 8 Feb 2021 13:47:38 +0000 (14:47 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Feb 2021 13:47:38 +0000 (14:47 +0100)
Fixes: https://github.com/karelzak/util-linux/pull/1243
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/calculate.c

index b6137fd23fe9daec403883e6a27905a5d90a9a89..974fc340c5e028080fd07fadd2bee250e66493b2 100644 (file)
@@ -325,7 +325,7 @@ int __scols_calculate(struct libscols_table *tb, struct libscols_buffer *buf)
 
                        DBG(TAB, ul_debugobj(tb, " enlarge width (last column)"));
 
-                       if (!scols_column_is_right(col) && tb->termwidth - width > 0) {
+                       if (!scols_column_is_right(col)) {
                                col->width += tb->termwidth - width;
                                width = tb->termwidth;
                        }