From a666f0deae5b488e8f89ccf0472ac23a5c406271 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 24 Apr 2019 10:28:27 +0200 Subject: [PATCH] Fix formatting for privileges on `/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong here. Printing privilige followed by nickaname in the same line. --- src/ui/occupantswin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/occupantswin.c b/src/ui/occupantswin.c index ffea71ed..807970a5 100644 --- a/src/ui/occupantswin.c +++ b/src/ui/occupantswin.c @@ -107,6 +107,7 @@ occupantswin_occupants(const char *const roomjid) g_string_append(role, "Moderators"); wattron(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); + win_sub_newline_lazy(layout->subwin); win_sub_print(layout->subwin, role->str, TRUE, FALSE, 0); wattroff(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); g_string_free(role, TRUE); @@ -123,6 +124,7 @@ occupantswin_occupants(const char *const roomjid) g_string_append(role, "Participants"); wattron(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); + win_sub_newline_lazy(layout->subwin); win_sub_print(layout->subwin, role->str, TRUE, FALSE, 0); wattroff(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); g_string_free(role, TRUE); @@ -139,6 +141,7 @@ occupantswin_occupants(const char *const roomjid) g_string_append(role, "Visitors"); wattron(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); + win_sub_newline_lazy(layout->subwin); win_sub_print(layout->subwin, role->str, TRUE, FALSE, 0); wattroff(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); g_string_free(role, TRUE); @@ -155,6 +158,7 @@ occupantswin_occupants(const char *const roomjid) g_string_append(role, "Occupants\n"); wattron(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); + win_sub_newline_lazy(layout->subwin); win_sub_print(layout->subwin, role->str, TRUE, FALSE, 0); wattroff(layout->subwin, theme_attrs(THEME_OCCUPANTS_HEADER)); g_string_free(role, TRUE);