X Tutup
Skip to content

Commit ff2d5fa

Browse files
committed
Check $GIT_EDITOR first
1 parent 8467c94 commit ff2d5fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/surveyext/editor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ func init() {
2626
if runtime.GOOS == "windows" {
2727
editor = "notepad"
2828
}
29+
if g := os.Getenv("GIT_EDITOR"); g != "" {
30+
editor = g
31+
}
2932
if v := os.Getenv("VISUAL"); v != "" {
3033
editor = v
3134
}

0 commit comments

Comments
 (0)
X Tutup