Commit 9ee708e1dd
Unregistered key
Layout: unified · split
internal/curd.go +5 −1
| @@ -44,7 +44,11 @@ func EditConfig(configFilePath string) { | ||
| 44 | 44 | editor = "notepad.exe" |
| 45 | 45 | } |
| 46 | 46 | } else { |
| 47 | editor = "vim" | |
| 47 | if _, err := exec.LookPath("vim"); err == nil { | |
| 48 | editor = "vim" | |
| 49 | } else { | |
| 50 | editor = "nano" | |
| 51 | } | |
| 48 | 52 | } |
| 49 | 53 | } |
| 50 | 54 | |