about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-04-16 22:18:01 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-04-16 22:18:01 +0200
commitdb2205d30c38fa37ee833db4d34be128f63cccba (patch)
tree5d16bf47856aa409c5ac8ff7769d0979abd76cd9 /src/command
parent2f4289bb3e316e405c55c9757e22cf574c9c9a55 (diff)
downloadprofani-tty-db2205d30c38fa37ee833db4d34be128f63cccba.tar.gz
editor: Save temp files as .md
Probably many people render text in their head to markdown
automatically.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index fc38a2b0..8c9377f8 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9320,9 +9320,9 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args)
         return TRUE;
     }
 
-    // build temp file name. Example: /tmp/profanity-f2f271dd-98c8-4118-8d47-3bd49c8e2e63.txt
+    // build temp file name. Example: /tmp/profanity-f2f271dd-98c8-4118-8d47-3bd49c8e2e63.md
     char* uuid = xmpp_uuid_gen(ctx);
-    char* filename = g_strdup_printf("%s%s%s.txt", g_get_tmp_dir(), "/profanity-", uuid);
+    char* filename = g_strdup_printf("%s%s%s.md", g_get_tmp_dir(), "/profanity-", uuid);
     if (uuid) {
         xmpp_free(ctx, uuid);
     }