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:
committed by
GitHub
parent
2432b44748
commit
bd36b40814
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user