Skip to content

Commit 1d17fde

Browse files
committed
If there’s really no editor, fall back to vi
1 parent 54be966 commit 1d17fde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/note/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func main() {
2222
editor = os.Getenv("EDITOR")
2323
}
2424

25+
if editor == "" {
26+
editor = "vi"
27+
}
28+
2529
uapi := &sdk.UnauthenticatedAPI{}
2630
aapi := sdk.NewAuthenticatedApi(config.GetToken())
2731

0 commit comments

Comments
 (0)