fix: Terminal hidden=true — keep process alive across toggle
This commit is contained in:
parent
bf7bd9fe42
commit
977384ccda
|
|
@ -42,6 +42,7 @@ function M.open(cmd)
|
||||||
local opts = {
|
local opts = {
|
||||||
direction = tall and 'horizontal' or 'vertical',
|
direction = tall and 'horizontal' or 'vertical',
|
||||||
cmd = cmd,
|
cmd = cmd,
|
||||||
|
hidden = true, -- 隐藏时进程继续跑,toggle() 只切显隐
|
||||||
}
|
}
|
||||||
local sz = tall and config.size.horizontal or config.size.vertical
|
local sz = tall and config.size.horizontal or config.size.vertical
|
||||||
if sz then
|
if sz then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue