From c92e687d3bb405086c66c47475359e304ed42166 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 7 Jun 2023 17:41:17 +1000 Subject: 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. --- pkg/integration/components/runner.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/integration/components/runner.go') 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)) -- cgit v1.2.3