feat: Fallback to notepad on Windows
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
6a8deb1f5a
commit
723daf714e
1 changed files with 3 additions and 3 deletions
|
|
@ -20,14 +20,14 @@ var (
|
|||
)
|
||||
|
||||
func init() {
|
||||
if runtime.GOOS == "windows" {
|
||||
defaultEditor = "notepad"
|
||||
} else if g := os.Getenv("GIT_EDITOR"); g != "" {
|
||||
if g := os.Getenv("GIT_EDITOR"); g != "" {
|
||||
defaultEditor = g
|
||||
} else if v := os.Getenv("VISUAL"); v != "" {
|
||||
defaultEditor = v
|
||||
} else if e := os.Getenv("EDITOR"); e != "" {
|
||||
defaultEditor = e
|
||||
} else if runtime.GOOS == "windows" {
|
||||
defaultEditor = "notepad"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue