Fix shell-integration-features being ignored when shell-integration is none

This commit is contained in:
Bryan Lee
2025-01-14 16:37:28 +08:00
parent 72d085525b
commit 8ee4deddb4
2 changed files with 17 additions and 4 deletions

View File

@@ -875,7 +875,11 @@ const Subprocess = struct {
};
const force: ?shell_integration.Shell = switch (cfg.shell_integration) {
.none => break :shell .{ null, default_shell_command },
.none => {
// Even if shell integration is none, we still want to set up the feature env vars
try shell_integration.setupFeatures(&env, cfg.shell_integration_features);
break :shell .{ null, default_shell_command };
},
.detect => null,
.bash => .bash,
.elvish => .elvish,