This commit is contained in:
piotr
2021-09-07 02:47:17 +02:00
parent 9d50258042
commit f12be46583
3 changed files with 4 additions and 2 deletions

View File

@@ -101,7 +101,9 @@ var (
func defaultStringIfBlank(s, fallback string) string {
s = strings.TrimSpace(s)
if s == "" {
// os.Getenv("TERM") returns "linux" instead of empty string, if program has been started
// from a key binding defined in the config file. See #23.
if s == "" || s == "linux" {
return fallback
}
return s