Added word wrap to roster panel

This commit is contained in:
James Booth
2015-11-22 01:39:20 +00:00
parent 0763bfc9f4
commit 3bc9275079
11 changed files with 60 additions and 19 deletions

View File

@@ -1266,13 +1266,17 @@ win_unread(ProfWin *window)
}
void
win_sub_print(WINDOW *win, char *msg, gboolean newline, gboolean wrap)
win_sub_print(WINDOW *win, char *msg, gboolean newline, gboolean wrap, int indent)
{
int maxx = getmaxx(win);
int curx = getcurx(win);
int cury = getcury(win);
waddnstr(win, msg, maxx - curx);
if (wrap) {
_win_print_wrapped(win, msg, 1, indent);
} else {
waddnstr(win, msg, maxx - curx);
}
if (newline) {
wmove(win, cury+1, 0);