summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-16 19:46:02 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-16 19:55:58 +1100
commit11acac00913cccbcde5f6c6112453adf0dec04ed (patch)
treeda4aa088bcd2694c0a315b54e90ce26a006eef48 /pkg/commands
parent866f4b9f0efa13dfb4b3ab995ab5595a3ed29e2f (diff)
more explicit
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git_commands/file.go3
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}}"