diff options
Diffstat (limited to 'pkg/commands/git_commands/file.go')
-rw-r--r-- | pkg/commands/git_commands/file.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/file.go b/pkg/commands/git_commands/file.go index 353a8dcdc..8744197f0 100644 --- a/pkg/commands/git_commands/file.go +++ b/pkg/commands/git_commands/file.go @@ -5,6 +5,7 @@ import ( "strconv" "github.com/go-errors/errors" + "github.com/jesseduffield/lazygit/pkg/config" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -58,7 +59,7 @@ func (self *FileCommands) GetEditCmdStr(filename string, lineNumber int) (string } editCmdTemplate := self.UserConfig.OS.EditCommandTemplate - if editCmdTemplate == "{{editor}} {{filename}}" { + if editCmdTemplate == config.DefaultEditCommandTemplate { switch editor { case "emacs", "nano", "vi", "vim": editCmdTemplate = "{{editor}} +{{line}} {{filename}}" |