fix(lazygit.lua): escape 'space' in filepath

This commit is contained in:
Chaz
2022-11-02 00:18:07 -10:00
committed by GitHub
parent e2be2a90b0
commit 914816035f

View File

@@ -53,7 +53,7 @@ local function lazygitdefaultconfigpath()
-- check before replacing the following line
local os = fn.substitute(fn.system('uname'), '\n', '', '')
if os == 'Darwin' then
return '~/Library/Application Support/jesseduffield/lazygit/config.yml'
return '~/Library/Application\\ Support/jesseduffield/lazygit/config.yml'
else
if string.find(os_name, 'Window') then
return '%APPDATA%/lazygit/config.yml'