mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(scratch): normalize filename
This commit is contained in:
parent
5532ba07be
commit
5200a8baa5
1 changed files with 2 additions and 1 deletions
|
@ -188,8 +188,9 @@ function M.open(opts)
|
|||
|
||||
vim.fn.mkdir(opts.root, "p")
|
||||
local fname = Snacks.util.file_encode(table.concat(filekey, "|") .. "." .. ft)
|
||||
file = vim.fs.normalize(opts.root .. "/" .. fname)
|
||||
file = opts.root .. "/" .. fname
|
||||
end
|
||||
file = vim.fs.normalize(file)
|
||||
|
||||
local icon, icon_hl = unpack(type(opts.icon) == "table" and opts.icon or { opts.icon, nil })
|
||||
---@cast icon string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue