This commit is contained in:
sxyazi 2024-06-22 18:58:24 +08:00
parent 8be63811a4
commit 7d1925815d
No known key found for this signature in database

View file

@ -3,8 +3,8 @@ Header = {
}
function Header:cwd(max)
local text = ya.readable_path(tostring(cx.active.current.cwd)) .. self:flags()
return ui.Span(ya.truncate(text, { max = max, rtl = true })):style(THEME.manager.cwd)
local s = ya.readable_path(tostring(cx.active.current.cwd)) .. self:flags()
return ui.Span(ya.truncate(s, { max = max, rtl = true })):style(THEME.manager.cwd)
end
function Header:flags()