Skip to content

Commit

Permalink
fix: TermExec cmd with config.shell as function (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
asror1 authored Aug 2, 2023
1 parent 00c13dc commit 83871e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/toggleterm/terminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ local function get_comment_sep() return is_windows and is_cmd(vim.o.shell) and "

local function get_newline_chr()
local shell = config.get("shell")
if type(shell) == "function" then shell = shell() end
return is_windows and (is_pwsh(shell) and "\r" or "\r\n") or "\n"
end

Expand Down

0 comments on commit 83871e3

Please sign in to comment.