fix: reuse terminal instance after hide (is_open returns false on toggle)
This commit is contained in:
parent
898ab9caaa
commit
bf7bd9fe42
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue