fix(terminal): pass a list of strings to termopen to prevent splitting. Fixes #59

This commit is contained in:
Folke Lemaitre 2024-11-11 09:31:39 +01:00
parent eb8ab37f6a
commit 458a84bd1d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -92,7 +92,7 @@ function M.open(cmd, opts)
cwd = opts.cwd,
env = opts.env,
}
vim.fn.termopen(cmd or vim.o.shell, vim.tbl_isempty(term_opts) and vim.empty_dict() or term_opts)
vim.fn.termopen(cmd or { vim.o.shell }, vim.tbl_isempty(term_opts) and vim.empty_dict() or term_opts)
end)
if opts.interactive ~= false then