We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa1a37f commit 559940aCopy full SHA for 559940a
lua/nvim-possession/utils.lua
@@ -69,8 +69,8 @@ M.is_in_cwd = function(session, user_config)
69
if type == "file" and file == session then
70
for line in io.lines(user_config.sessions.sessions_path .. file) do
71
if string.find(line, dir_pat) then
72
- session_dir = vim.uv.fs_realpath(vim.fs.normalize((line:gsub("cd%s*", ""))))
73
- if session_dir == vim.fn.getcwd() then
+ session_dir = vim.fs.abspath((line:gsub("cd%s*", "")))
+ if session_dir == vim.fs.normalize(vim.fn.getcwd()) then
74
return true
75
end
76
0 commit comments