From be56dc9129a0f2d4df64c700321ad93383a8ba75 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Thu, 19 Oct 2023 01:35:57 +0000 Subject: [PATCH] Respect value of auto_close in FTerm.scratch --- lua/FTerm/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/FTerm/init.lua b/lua/FTerm/init.lua index d13133a..06377df 100644 --- a/lua/FTerm/init.lua +++ b/lua/FTerm/init.lua @@ -59,7 +59,9 @@ function M.scratch(cfg) return vim.notify('FTerm: Please provide configuration for scratch terminal', vim.log.levels.ERROR) end - cfg.auto_close = false + if cfg.auto_close == nil then + cfg.auto_close = false + end M:new(cfg):open() end