Skip to content

Commit 54626b2

Browse files
committed
Added missing binary prefixes
1 parent c200fb1 commit 54626b2

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
@@ -281,7 +281,7 @@ function M.move_missing_val(src, src_path, src_pos, dst, dst_path, dst_pos, remo
281281
end
282282

283283
function M.format_bytes(bytes)
284-
local units = { "B", "K", "M", "G", "T" }
284+
local units = { "B", "K", "M", "G", "T", "P", "E", "Z", "Y" }
285285

286286
bytes = math.max(bytes, 0)
287287
local pow = math.floor((bytes and math.log(bytes) or 0) / math.log(1024))

0 commit comments

Comments
 (0)