diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-07 17:41:17 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-06-07 18:27:18 +1000 |
commit | c92e687d3bb405086c66c47475359e304ed42166 (patch) | |
tree | ef4ffb70231341848698a1750c6d7821b8ac27ff /pkg/integration/components/runner.go | |
parent | b6a31369da3f42c1254f6d5ba0ca4e4cb79f42f7 (diff) |
Fix focus issue when opening recent-repos menu at launch
I don't know why we were setting the initial context to CurrentSideContext
and not just CurrentContext in the first place. If there is no current context
in either case it'll default to the files context. So the only issue is if
we anticipated that some random context would be focused and we didn't want to
activate that. But I can't think of any situation where that would happen.
Diffstat (limited to 'pkg/integration/components/runner.go')
-rw-r--r-- | pkg/integration/components/runner.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/integration/components/runner.go b/pkg/integration/components/runner.go index f1f8e3c89..9a787c864 100644 --- a/pkg/integration/components/runner.go +++ b/pkg/integration/components/runner.go @@ -187,6 +187,11 @@ func getLazygitCommand(test *IntegrationTest, paths Paths, rootDir string, sandb if sandbox { cmdObj.AddEnvVars(fmt.Sprintf("%s=%s", SANDBOX_ENV_VAR, "true")) } + if test.ExtraEnvVars() != nil { + for key, value := range test.ExtraEnvVars() { + cmdObj.AddEnvVars(fmt.Sprintf("%s=%s", key, value)) + } + } if keyPressDelay > 0 { cmdObj.AddEnvVars(fmt.Sprintf("KEY_PRESS_DELAY=%d", keyPressDelay)) |