From 170e8abe295a37a7a63806c1354c079736f27c3e Mon Sep 17 00:00:00 2001 From: Kenan Date: Thu, 28 Aug 2025 12:21:45 -0700 Subject: [PATCH] Fix windows terminal cmd quote placement This places the exit_handler inside the quotes, so the exit handler will be included in the `cmd /C` --- lua/cmake-tools/terminal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/cmake-tools/terminal.lua b/lua/cmake-tools/terminal.lua index c9c2af99..f4928fb7 100644 --- a/lua/cmake-tools/terminal.lua +++ b/lua/cmake-tools/terminal.lua @@ -624,8 +624,8 @@ function _terminal.run(cmd, env_script, env, args, cwd, opts, on_exit, on_output .. (final_env .. (final_env ~= "" and " " or "")) .. final_cmd .. ((final_args ~= "" and " " or "") .. final_args) - .. (osys.iswin32 and '"' or "") .. exit_handler + .. (osys.iswin32 and '"' or "") else if osys.iswin32 then error("using a shell alias is currently not suported for windows")