# HG changeset patch # User Kim Alvefur # Date 1681072272 -7200 # Node ID 7a75cbc4d87c44d31757f632ac628a680f0c2222 # Parent 386ca97bec5b0e7c3d653f6f687683dd2b921987 util.human.io: Fix column width miscalculation Fixes that the more fixed width columns there are, the narrower the resulting table becomes. A right-aligned variable-width column at the last position should always be flush to the right side of the terminal. diff -r 386ca97bec5b -r 7a75cbc4d87c util/human/io.lua --- a/util/human/io.lua Sun Apr 09 01:34:08 2023 +0200 +++ b/util/human/io.lua Sun Apr 09 22:31:12 2023 +0200 @@ -142,9 +142,6 @@ width = math.max(tonumber(width), title and (#title+1) or 0); widths[i] = width; free_width = free_width - width; - if i > 1 then - free_width = free_width - #separator; - end end end