# HG changeset patch # User Kim Alvefur # Date 1591288837 -7200 # Node ID e890b83f08cf5d2b50b050331ba51470bde57f2b # Parent 3af3354366ebea0d0a02cd566d52b387ad05a047 util.human.io: Consider separator when calculating remaining width diff -r 3af3354366eb -r e890b83f08cf util/human/io.lua --- a/util/human/io.lua Thu Jun 04 18:36:47 2020 +0200 +++ b/util/human/io.lua Thu Jun 04 18:40:37 2020 +0200 @@ -110,6 +110,9 @@ 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 -- Calculate width of %-based columns