diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 63d665f6..358c5fbf 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -2277,8 +2277,10 @@ _get_default_string(preference_t pref) return "xdg-open"; case PREF_URL_OPEN_CMD: return "xdg-open %u"; - case PREF_COMPOSE_EDITOR: - return "vim"; + case PREF_COMPOSE_EDITOR: { + gchar* editor = getenv("EDITOR"); + return editor ? editor : "vim"; + } case PREF_URL_SAVE_CMD: return NULL; // Default to built-in method. default: |