about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-05-09 20:04:31 +0200
committerMichael Vetter <jubalh@iodoru.org>2023-05-10 09:34:52 +0200
commit46c90bc68138ca0268ef2562e4f8c9917daf257f (patch)
tree82f06767c3012b97928bbcdd225776eef90e8a89 /src/command/cmd_funcs.c
parenta7159c5954c71efcf750c76f8861f19821d5e9b8 (diff)
downloadprofani-tty-46c90bc68138ca0268ef2562e4f8c9917daf257f.tar.gz
Make it possible to reset editor to default
All the other commands (avatar, vcard_photo, urlsave, urlopen) have the
ability to reset to default already.
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index e18498c6..3c982213 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9688,6 +9688,9 @@ cmd_executable_editor(ProfWin* window, const char* const command, gchar** args)
     if (g_strcmp0(args[1], "set") == 0 && num_args >= 3) {
         prefs_set_string(PREF_COMPOSE_EDITOR, args[2]);
         cons_show("`editor` command set to invoke '%s'", args[2]);
+    } else if (g_strcmp0(args[1], "default") == 0) {
+        prefs_set_string(PREF_COMPOSE_EDITOR, NULL);
+        cons_show("`editor` will use built-in download method (default)");
     } else {
         cons_bad_cmd_usage(command);
     }