From 4cb50b15e43606a1fe4d36fc36e0b1ca447949ab Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Sat, 1 Feb 2020 15:57:30 -0500 Subject: [PATCH] make amend more non-interactive --- pkg/commands/git.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 4bb574f95..d3f528c8e 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -623,10 +623,12 @@ func (c *GitCommand) FastForward(branchName string, remoteName string, remoteBra func (c *GitCommand) RunSkipEditorCommand(command string) error { cmd := c.OSCommand.ExecutableFromString(command) + lazyGitPath := c.OSCommand.GetLazygitPath() cmd.Env = append( cmd.Env, "LAZYGIT_CLIENT_COMMAND=EXIT_IMMEDIATELY", - "EDITOR="+c.OSCommand.GetLazygitPath(), + "EDITOR="+lazyGitPath, + "VISUAL="+lazyGitPath, ) return c.OSCommand.RunExecutable(cmd) }