From ebadaeb65164e82ed12beb83772be6e19723e35f Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 8 Jan 2020 01:13:05 +0900 Subject: [PATCH] Use vi when $EDITOR is empty --- cmd/mmv/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index cae0320..73ef8ce 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -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()