From be55b16bef18532d46161842412236629bde5601 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 3 May 2022 12:17:29 +0200 Subject: [PATCH] Restore default behaviour for stamps @mdosch discovered that we now don't print `:` for messages from others anymore. Until https://github.com/profanity-im/profanity/pull/1663#issuecomment-1114625151 is fixed lets restore the default behaviour to always add `:` in `_win_print_internal()`. The result will be that a stamp set to `-->` will also look like `-->:`. --- src/config/preferences.c | 2 +- src/ui/window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/preferences.c b/src/config/preferences.c index 1a01ab66..62b75051 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -2292,7 +2292,7 @@ _get_default_string(preference_t pref) return editor ? editor : "vim"; } case PREF_OUTGOING_STAMP: - return "me:"; + return "me"; case PREF_INCOMING_STAMP: return NULL; case PREF_URL_SAVE_CMD: diff --git a/src/ui/window.c b/src/ui/window.c index 7d0e6381..5f879c8f 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1602,7 +1602,7 @@ _win_print_internal(ProfWin* window, const char* show_char, int pad_indent, GDat offset = 4; me_message = TRUE; } else { - wprintw(window->layout->win, "%s ", from); + wprintw(window->layout->win, "%s: ", from); wattroff(window->layout->win, colour); } }