fix: cwd with spaces failing to cd

This commit is contained in:
kyazdani42 2020-06-04 21:54:53 +02:00
parent aabc658384
commit f740fc5d1e

View File

@ -52,6 +52,7 @@ local function create_root(cwd)
end end
function M.update_status(entries, cwd) function M.update_status(entries, cwd)
local cwd = cwd:gsub(' ', '\\ ')
local git_root, git_status = get_git_root(cwd) local git_root, git_status = get_git_root(cwd)
if not git_root then if not git_root then
if not create_root(cwd) then if not create_root(cwd) then