about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-06 13:46:40 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-06 13:46:40 +0200
commit5cf6ee1bc6d0b99b01891bc455a657bf022a72b0 (patch)
tree1b73703f92049becabfa3101f512dfc0d39e463a /src/ui/console.c
parent85520ecdc5d2e6ac6654817572b8fd99e43e25d9 (diff)
downloadprofani-tty-5cf6ee1bc6d0b99b01891bc455a657bf022a72b0.tar.gz
Fix `/correction` char display
https://github.com/profanity-im/profanity/commit/1f8b1eb740391941e79e1004ad041f8178a2b674 made it possible to have utf8 chars as correction chars. So since then prefs_get_correction_char() doesn't return a regular char but a char*.
Seems like there was an oversight that we need to use %s then.
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 829870d9..58b33204 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2046,7 +2046,7 @@ cons_correction_setting(void)
     }
 
     char *cc = prefs_get_correction_char();
-    cons_show("LMC indication char (/correction char)                             : %c", cc);
+    cons_show("LMC indication char (/correction char)                             : %s", cc);
     free(cc);
 }