Skip to content

Commit 83871e3

Browse files
authored
fix: TermExec cmd with config.shell as function (#467)
1 parent 00c13dc commit 83871e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/toggleterm/terminal.lua

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ local function get_comment_sep() return is_windows and is_cmd(vim.o.shell) and "
3333

3434
local function get_newline_chr()
3535
local shell = config.get("shell")
36+
if type(shell) == "function" then shell = shell() end
3637
return is_windows and (is_pwsh(shell) and "\r" or "\r\n") or "\n"
3738
end
3839

0 commit comments

Comments
 (0)