Skip to content

Commit c200fb1

Browse files
committed
Added binary (IEC) prefixes
1 parent db8145c commit c200fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function M.format_bytes(bytes)
292292

293293
pow = pow + 1
294294

295-
return (units[pow] == nil) and (bytes .. "B") or (value .. units[pow])
295+
return (units[pow] == nil) and (bytes .. units[1]) or (value .. units[pow] .. "i" .. units[1])
296296
end
297297

298298
function M.key_by(tbl, key)

0 commit comments

Comments
 (0)