Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GrzegorzKozub committed Oct 13, 2024
1 parent 12e5112 commit ec68390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/status.yazi/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function Status:size()
if not h then
return ui.Span ''
end
local size = h:size() or h.cha.length
local size = h:size() or h.cha.len
return ui.Span(string.format('%6s', ya.readable_size(size))):fg(size_color(size))
end

Expand Down Expand Up @@ -51,7 +51,7 @@ function Status:modified()
if not h then
return ui.Span ''
end
local modified = math.floor(h.cha.modified)
local modified = math.floor(h.cha.mtime)
local now = math.floor(ya.time())
local format = year(modified) < year(now) and '%d %b %Y' or '%d %b %H:%M'
return ui.Span(tostring(os.date(format, modified)):lower()):fg 'gray'
Expand Down

0 comments on commit ec68390

Please sign in to comment.