mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
suggestion: remove is_cut variable declaration
This commit is contained in:
parent
0c41fec768
commit
e2a5211015
1 changed files with 1 additions and 2 deletions
|
|
@ -17,11 +17,10 @@ end
|
||||||
function Header:counter()
|
function Header:counter()
|
||||||
local selected = #cx.active.selected
|
local selected = #cx.active.selected
|
||||||
local yanked = #cx.yanked
|
local yanked = #cx.yanked
|
||||||
local is_cut = cx.yanked.is_cut
|
|
||||||
|
|
||||||
local count
|
local count
|
||||||
local style
|
local style
|
||||||
if is_cut then
|
if cx.yanked.is_cut then
|
||||||
count = yanked
|
count = yanked
|
||||||
style = THEME.manager.count_cut
|
style = THEME.manager.count_cut
|
||||||
elseif yanked > 0 then
|
elseif yanked > 0 then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue