about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index fa02ff95..bf7afe74 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -681,9 +681,7 @@ win_printline_nowrap(WINDOW *win, char *msg)
     int maxx = getmaxx(win);
     int cury = getcury(win);
 
-    int i = 0;
-    for (i = 0; i<strlen(msg) && i<maxx; i++) {
-        waddch(win, msg[i]);
-    }
+    waddnstr(win, msg, maxx);
+
     wmove(win, cury+1, 0);
 }
\ No newline at end of file