diff options
author | James Booth <boothj5@gmail.com> | 2014-11-11 00:54:10 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-11-11 00:54:10 +0000 |
commit | 7e360dc35a30bd20ba34239949e461159417182a (patch) | |
tree | a31e1b139fc65226bd04da5a8ab3d54d68716b67 /src/ui | |
parent | a45cb4bb3c10bf9ed9f2c0df1ec706efd79052f4 (diff) | |
download | profani-tty-7e360dc35a30bd20ba34239949e461159417182a.tar.gz |
Fixed printing utf8 chats to roster, changed boothj5 theme
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 6 |
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 |