fix: Terminal hidden=true — keep process alive across toggle

This commit is contained in:
QQ 2026-06-11 20:53:27 +08:00
parent bf7bd9fe42
commit 977384ccda
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ function M.open(cmd)
local opts = {
direction = tall and 'horizontal' or 'vertical',
cmd = cmd,
hidden = true, -- 隐藏时进程继续跑toggle() 只切显隐
}
local sz = tall and config.size.horizontal or config.size.vertical
if sz then