Skip to content

Commit 129c2f8

Browse files
authored
fix: handle symlinks for ChatDelete (#171)
1 parent 0e7a4a2 commit 129c2f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gp/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ M.cmd.ChatDelete = function()
21842184
local file_name = vim.api.nvim_buf_get_name(buf)
21852185

21862186
-- check if file is in the chat dir
2187-
if not _H.starts_with(file_name, M.config.chat_dir) then
2187+
if not _H.starts_with(file_name, vim.fn.resolve(M.config.chat_dir)) then
21882188
M.logger.warning("File " .. vim.inspect(file_name) .. " is not in chat dir")
21892189
return
21902190
end

0 commit comments

Comments
 (0)