Skip to content

Commit 7693359

Browse files
committed
fix: do not use vim.fs.abspath
Not available in latest neovim release yet Closes CopilotC-Nvim#886 Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent 630a747 commit 7693359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/CopilotChat/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function M.filename_same(file1, file2)
184184
if not file1 or not file2 then
185185
return false
186186
end
187-
return vim.fs.abspath(vim.fs.normalize(file1)) == vim.fs.abspath(vim.fs.normalize(file2))
187+
return vim.fn.fnamemodify(file1, ':p') == vim.fn.fnamemodify(file2, ':p')
188188
end
189189

190190
--- Get the filetype of a file

0 commit comments

Comments
 (0)