fix: store win and buffer for :LazyGitFilter command

This commit is contained in:
Tashreeq Peck
2023-07-15 17:39:21 +08:00
parent 3466e48439
commit b4a4c6d26b

View File

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