Merge pull request #1 from mattn/editor

Use vi when $EDITOR is empty
This commit is contained in:
itchyny 2020-01-08 01:18:30 +09:00 committed by GitHub
commit e3710bd25c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ func rename(args []string) error {
f.WriteString("\n")
}
editor := os.Getenv("EDITOR")
if editor != "" {
if editor == "" {
editor = "vi"
}
tty, err := tty.Open()