mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(terminal): pass a list of strings to termopen to prevent splitting. Fixes #59
This commit is contained in:
parent
eb8ab37f6a
commit
458a84bd1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue