1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Edit command as user OS config option

This commit is contained in:
caojoshua
2021-05-19 23:44:58 -07:00
committed by Jesse Duffield
parent cb78cf7de4
commit 60468d2e17
6 changed files with 37 additions and 1 deletions

View File

@ -318,7 +318,11 @@ func (c *GitCommand) ResetAndClean() error {
}
func (c *GitCommand) EditFileCmdStr(filename string) (string, error) {
editor := c.GetConfigValue("core.editor")
editor := c.Config.GetUserConfig().OS.EditCommand
if editor == "" {
editor = c.GetConfigValue("core.editor")
}
if editor == "" {
editor = c.OSCommand.Getenv("GIT_EDITOR")