summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/file_browser.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/file_browser.lua b/lua/file_browser.lua
index f4f6f216..08d683e1 100644
--- a/lua/file_browser.lua
+++ b/lua/file_browser.lua
@@ -65,11 +65,15 @@ return screen:new {
iterator = filesystem.iterator(item:filepath()),
breadcrumb = item:filepath()
})
- end
- if item:filepath():match("%.playlist$") then
+ elseif item:filepath():match("%.playlist$") then
queue.open_playlist(item:filepath())
playback.playing:set(true)
backstack.push(playing:new())
+ elseif playback.is_playable(item:filepath()) then
+ queue.clear()
+ queue.add(item:filepath())
+ playback.playing:set(true)
+ backstack.push(playing:new())
end
end
end