fix(picker.explorer): fix cwd for items

This commit is contained in:
Folke Lemaitre 2025-01-30 20:29:33 +01:00
parent 9eecf4ed85
commit 71070b78f0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -448,6 +448,7 @@ function M.explorer(opts, ctx)
files(function(item)
---@cast item snacks.picker.explorer.Item
item.cwd = nil -- we use absolute paths
-- Directories
if item.file:sub(-1) == "/" then