fnameescape path before calling lazygit

This commit is contained in:
Joel D. Elkins
2021-03-24 16:33:44 -05:00
parent 9de03ca045
commit 3a8fb14119

View File

@@ -146,6 +146,7 @@ local function lazygit(path)
if path == nil then
path = project_root_dir()
end
path = vim.fn.fnameescape(path)
open_floating_window()
local cmd = "lazygit"
if not vim.env.GIT_DIR then