Skip to content

Commit

Permalink
fixed regression when colouring the playing item
Browse files Browse the repository at this point in the history
  • Loading branch information
CogentRedTester committed Oct 6, 2022
1 parent 16dccba commit 92d1652
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions file-browser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -755,14 +755,15 @@ local function update_ass()
elseif i == state.selected then append(style.selected) end

--prints the currently-playing icon and style
if playing_file and multiselected then append(style.playing_selected)
elseif playing_file then append(style.playing) end
if playing_file then append( multiselected and style.playing_selected or style.playing) end

--sets the folder icon
if v.type == 'dir' then append(style.folder..o.folder_icon.."\\h") end
if v.type == 'dir' then
append(style.folder..o.folder_icon.."\\h"..style.body)
if playing_file then append( multiselected and style.playing_selected or style.playing) end
end

--adds the actual name of the item
append(style.body)
append(v.ass or API.ass_escape(v.label or v.name, true))
newline()
end
Expand Down

0 comments on commit 92d1652

Please sign in to comment.