fix: use quotes to allow filtering on files with spaces in path (#141)

:LazyGitFilterCurrentFile currently breaks if the path of the file
contains a space. Fixed by wrapping the path in quotes.
This commit is contained in:
Hassan El-Mehalawi
2024-10-01 14:36:39 +03:00
committed by GitHub
parent 2432b44748
commit bd36b40814

View File

@@ -132,7 +132,7 @@ local function lazygitfilter(path)
end
prev_win = vim.api.nvim_get_current_win()
win, buffer = open_floating_window()
local cmd = "lazygit " .. "-f " .. path
local cmd = "lazygit " .. "-f " .. "'" .. path .. "'"
exec_lazygit_command(cmd)
end