We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c13dc commit 83871e3Copy full SHA for 83871e3
lua/toggleterm/terminal.lua
@@ -33,6 +33,7 @@ local function get_comment_sep() return is_windows and is_cmd(vim.o.shell) and "
33
34
local function get_newline_chr()
35
local shell = config.get("shell")
36
+ if type(shell) == "function" then shell = shell() end
37
return is_windows and (is_pwsh(shell) and "\r" or "\r\n") or "\n"
38
end
39
0 commit comments