diff --git a/config.go b/config.go index 20f480cf..377e5d2c 100644 --- a/config.go +++ b/config.go @@ -255,6 +255,9 @@ func editor() (string, []string) { } editorArgs := strings.Fields(editorInput) + if len(editorArgs) == 0 { + continue + } editor, err := exec.LookPath(editorArgs[0]) if err != nil {