about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-12 07:07:54 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-12 07:07:54 +0100
commit0482a80f8a27d1b36e20c73024a3f7735c2dafe1 (patch)
tree3122c11fd195c5a25747e669d09b4ec6ec0891cd /src
parentb6b7dd5ad497a71e250b8b3cef0bb987314b141d (diff)
downloadprofani-tty-0482a80f8a27d1b36e20c73024a3f7735c2dafe1.tar.gz
Rename win_correct_incoming to win_correct
and make it static.
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 1218b177..45c0ae67 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1060,8 +1060,8 @@ win_show_status_string(ProfWin *window, const char *const from,
     win_appendln(window, presence_colour, "");
 }
 
-void
-win_correct_incoming(ProfWin *window, const char *const message, const char *const id, const char *const replace_id)
+static void
+_win_correct(ProfWin *window, const char *const message, const char *const id, const char *const replace_id)
 {
     ProfBuffEntry *entry = buffer_get_entry_by_id(window->layout->buffer, replace_id);
     if (!entry) {
@@ -1121,7 +1121,7 @@ win_print_incoming(ProfWin *window, const char *const from, ProfMessage *message
             }
 
             if (message->replace_id) {
-                win_correct_incoming(window, message->plain, message->id, message->replace_id);
+                _win_correct(window, message->plain, message->id, message->replace_id);
             } else {
                 _win_printf(window, enc_char, 0, message->timestamp, flags, THEME_TEXT_THEM, from, message->id, "%s", message->plain);
             }
@@ -1193,7 +1193,7 @@ win_print_outgoing(ProfWin *window, const char ch, const char *const id, const c
     g_string_vprintf(fmt_msg, message, arg);
 
     if (replace_id) {
-        win_correct_incoming(window, fmt_msg->str, id, replace_id);
+        _win_correct(window, fmt_msg->str, id, replace_id);
     } else {
         //TODO: without this it works.
         //buffer_append(window->layout->buffer, ch, 0, timestamp, 0, THEME_TEXT_ME, "me", fmt_msg->str, NULL, id);
a> 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210