Option to show presence information on single line in roster

This commit is contained in:
James Booth
2015-11-22 00:30:42 +00:00
parent 5c08bea8d0
commit 7a324abcd6
5 changed files with 94 additions and 44 deletions

View File

@@ -1269,11 +1269,22 @@ void
win_print_nowrap(WINDOW *win, char *msg, gboolean newline)
{
int maxx = getmaxx(win);
int curx = getcurx(win);
int cury = getcury(win);
waddnstr(win, msg, maxx);
waddnstr(win, msg, maxx - curx);
if (newline) {
wmove(win, cury+1, 0);
}
}
void
win_newline_lazy(WINDOW *win)
{
int curx = getcurx(win);
if (curx > 0) {
int cury = getcury(win);
wmove(win, cury+1, 0);
}
}