From a1a4ec31deac6ae7c053da1796d58b7b4a495ab8 Mon Sep 17 00:00:00 2001 From: Rolv Apneseth Date: Thu, 15 Feb 2024 14:09:51 +0000 Subject: [PATCH] Update yazi-plugin/preset/components/header.lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 三咲雅 · Misaki Masa --- 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 6558f02f..9e528a34 100644 --- a/yazi-plugin/preset/components/header.lua +++ b/yazi-plugin/preset/components/header.lua @@ -70,8 +70,8 @@ end function Header:render(area) local chunks = self:layout(area) - local left = ui.Line({ self:cwd() }) - local right = ui.Line({ self:selected_count(), self:tabs() }) + local left = ui.Line { self:cwd() } + local right = ui.Line { self:counter(), self:tabs() } return { ui.Paragraph(chunks[1], { left }), ui.Paragraph(chunks[2], { right }):align(ui.Paragraph.RIGHT),