Allow writing to different section headers in libmutton.ini

This commit is contained in:
2024-07-17 15:49:45 -04:00
parent 4917149299
commit e81bfa935a
3 changed files with 23 additions and 37 deletions
-1
View File
@@ -10,7 +10,6 @@ const fallbackEditor = "vi" // vi is pre-installed on most UNIX systems
// textEditorFallback returns the value of the $EDITOR environment variable, or FallbackEditor if it is not set
func textEditorFallback() string {
// ensure textEditor is set
textEditor := os.Getenv("EDITOR")
if textEditor == "" {
textEditor = fallbackEditor