Fix: cwd detection of builtin.git_ (#264)

This commit is contained in:
YIQUN
2020-11-19 16:03:08 +08:00
committed by GitHub
parent aff22f5bf1
commit 319e8ed892

View File

@@ -147,7 +147,7 @@ local set_opts_cwd = function(opts)
if opts.cwd then if opts.cwd then
opts.cwd = vim.fn.expand(opts.cwd) opts.cwd = vim.fn.expand(opts.cwd)
else else
opts.cwd = vim.fn.expand('%:p:h') opts.cwd = vim.loop.cwd()
end end
-- Find root of git directory and remove trailing newline characters -- Find root of git directory and remove trailing newline characters