Update yazi-plugin/preset/components/header.lua

Co-authored-by: 三咲雅 · Misaki Masa <sxyazi@gmail.com>
This commit is contained in:
Rolv Apneseth 2024-02-15 14:09:51 +00:00 committed by GitHub
parent f789ddeb0e
commit a1a4ec31de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),