diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 358c5fbf..43c91b54 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -2277,7 +2277,8 @@ _get_default_string(preference_t pref) return "xdg-open"; case PREF_URL_OPEN_CMD: return "xdg-open %u"; - case PREF_COMPOSE_EDITOR: { + case PREF_COMPOSE_EDITOR: + { gchar* editor = getenv("EDITOR"); return editor ? editor : "vim"; } |