fix(util): use vim.o.shell by default

This commit is contained in:
Folke Lemaitre 2023-04-23 15:59:31 +02:00
parent fe28f4b73e
commit 0cbf466913
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ function M.float_term(cmd, opts)
cmd = { cmd } cmd = { cmd }
end end
if #cmd == 0 then if #cmd == 0 then
cmd = { vim.env.SHELL or vim.o.shell } cmd = { vim.o.shell }
end end
opts = opts or {} opts = opts or {}
local float = M.float(opts) local float = M.float(opts)