From 75c920883f44243f2bbb172be423e484a58f7c45 Mon Sep 17 00:00:00 2001 From: Roger Kim Date: Tue, 5 Sep 2023 16:16:27 -0400 Subject: [PATCH] fix: Cover missing edge case in resetting user's preferred shell --- lua/lazygit/utils.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazygit/utils.lua b/lua/lazygit/utils.lua index 469d9a4..f8a43ac 100644 --- a/lua/lazygit/utils.lua +++ b/lua/lazygit/utils.lua @@ -57,6 +57,7 @@ local function project_root_dir() local cwd = vim.loop.cwd() local root = get_root(cwd) if root == nil then + vim.o.shell = oldshell return nil end