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.
This commit is contained in:
Michael Vetter
2023-05-09 20:04:31 +02:00
parent a7159c5954
commit 46c90bc681
2 changed files with 5 additions and 0 deletions

View File

@@ -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);
}