From 38c5258d6e88e7d5e1ff7ae52e3bd8d3dd4b0a87 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 4 Jan 2024 19:48:08 -0800 Subject: [PATCH] termio/exec: small change --- src/termio/Exec.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 04ea9293b..8c55fa114 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -1090,7 +1090,7 @@ const Subprocess = struct { break :args try args.toOwnedSlice(); } - if (builtin.os.tag == .windows) { + if (comptime builtin.os.tag == .windows) { // We run our shell wrapped in `cmd.exe` so that we don't have // to parse the command line ourselves if it has arguments. try args.append("C:\\Windows\\System32\\cmd.exe"); @@ -1105,6 +1105,7 @@ const Subprocess = struct { if (internal_os.isFlatpak()) try args.append("-l"); try args.append("-c"); } + try args.append(opts.full_config.command orelse default_path); break :args try args.toOwnedSlice(); };