Skip to content

Commit f36f0a6

Browse files
committed
fix: wrong chain symbol for pwsh
1 parent 0d2e24d commit f36f0a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lua/cmake-tools/terminal.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,11 @@ function _terminal.run(cmd, env_script, env, args, cwd, opts, on_exit, on_output
595595
-- Reposition the terminal buffer, before sending commands
596596
local final_win_id = _terminal.reposition(opts)
597597

598-
local exit_handler = (osys.iswin32 and "& " or "; ") .. get_command_handling_on_exit()
598+
local chain_symb = (osys.iswin32 and "& " or "; ")
599+
if is_power_shell() then
600+
chain_symb = "; "
601+
end
602+
local exit_handler = chain_symb .. get_command_handling_on_exit()
599603
local final_cmd, final_env, final_args, build_dir = prepare_run(cmd, env, args, cwd)
600604
local full_cmd
601605
local call_update

0 commit comments

Comments
 (0)