From 7d1925815dea644140aa845466b81b699527312b Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 22 Jun 2024 18:58:24 +0800 Subject: [PATCH] .. --- yazi-plugin/preset/components/header.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-plugin/preset/components/header.lua b/yazi-plugin/preset/components/header.lua index 90a60def..d973266d 100644 --- a/yazi-plugin/preset/components/header.lua +++ b/yazi-plugin/preset/components/header.lua @@ -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()