fix various issues, and add a comment because of a bug in glibc

This commit is contained in:
kyazdani42
2020-06-09 18:59:32 +02:00
parent 899fb177e0
commit 896cc1619a
2 changed files with 19 additions and 9 deletions

View File

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