From b4a4c6d26bbdf2895ec86f1647666af9aedbb774 Mon Sep 17 00:00:00 2001 From: Tashreeq Peck Date: Sat, 15 Jul 2023 17:39:21 +0800 Subject: [PATCH] fix: store win and buffer for :LazyGitFilter command --- lua/lazygit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazygit.lua b/lua/lazygit.lua index c3310b0..9845c12 100644 --- a/lua/lazygit.lua +++ b/lua/lazygit.lua @@ -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