We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e7a4a2 commit 129c2f8Copy full SHA for 129c2f8
lua/gp/init.lua
@@ -2184,7 +2184,7 @@ M.cmd.ChatDelete = function()
2184
local file_name = vim.api.nvim_buf_get_name(buf)
2185
2186
-- check if file is in the chat dir
2187
- if not _H.starts_with(file_name, M.config.chat_dir) then
+ if not _H.starts_with(file_name, vim.fn.resolve(M.config.chat_dir)) then
2188
M.logger.warning("File " .. vim.inspect(file_name) .. " is not in chat dir")
2189
return
2190
end
0 commit comments