Skip to content

Commit 13cca0f

Browse files
committed
fix: increase min width of column FSTYPE, NAME
v0.3.1
1 parent fb210d8 commit 13cca0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsblk.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ local MARKER_LAST = 2
3939
local TYPE_DISK = "disk"
4040
local TYPE_PART = "part"
4141

42-
local VERSION = "0.3.0"
42+
local VERSION = "0.3.1"
4343

4444
-------------------------
4545
--- Utility functions ---
@@ -335,7 +335,7 @@ end
335335

336336
-- Calculate the maximum display width needed for certain fields.
337337
local function max_field_lengths(devices, humanize)
338-
local max_lens = { fstype = 1, name = 1, size = 6 }
338+
local max_lens = { fstype = 6, name = 4, size = 6 }
339339

340340
for _, device in ipairs(devices) do
341341
-- Use byte length for `string.format`.

0 commit comments

Comments
 (0)