fix: reuse terminal instance after hide (is_open returns false on toggle)

This commit is contained in:
QQ 2026-06-11 20:09:25 +08:00
parent 898ab9caaa
commit bf7bd9fe42
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function M.open(cmd)
opts.size = sz
end
if not terms[name] or not terms[name]:is_open() then
if not terms[name] then
terms[name] = require('toggleterm.terminal').Terminal:new(opts)
end