about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-10-06 02:12:25 +0100
committerJames Booth <boothj5@gmail.com>2013-10-06 02:12:25 +0100
commit39fa13358020711db0dc6d5a00d41ac0c0c89db6 (patch)
tree79e9a0da8659fbf7c9e741fb367c818ea45e0949
parent6441e06279ff81fb5fb4ed3da04782f01e62db67 (diff)
downloadprofani-tty-39fa13358020711db0dc6d5a00d41ac0c0c89db6.tar.gz
Refactored ui_current_print_line
-rw-r--r--src/ui/core.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 1f77736d..332960fd 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -824,14 +824,8 @@ ui_current_print_line(const char * const msg, ...)
     ProfWin *current = wins_get_current();
     va_list arg;
     va_start(arg, msg);
-    GString *fmt_msg = g_string_new(NULL);
-    g_string_vprintf(fmt_msg, msg, arg);
-    current->print_time(current, '-');
-    wprintw(current->win, "%s\n", fmt_msg->str);
-    g_string_free(fmt_msg, TRUE);
+    current->print_line(current, msg, arg);
     va_end(arg);
-
-    wins_refresh_current();
 }
 
 void