about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-04-24 10:28:27 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-04-24 10:28:27 +0200
commita666f0deae5b488e8f89ccf0472ac23a5c406271 (patch)
treebf03abbc601d1bca78deb7c9de166da7abc1c469 /src
parent30f9de61d043e519927feae72b4ad8cc43094548 (diff)
downloadprofani-tty-a666f0deae5b488e8f89ccf0472ac23a5c406271.tar.gz
Fix formatting for privileges on
`/privileges on` lists `Moderator`, `Visitor` etc. Formatting was wrong
here. Printing privilige followed by nickaname in the same line.
Diffstat (limited to 'src')
-rw-r--r--src/ui/occupantswin.c4
1 files changed, 4 insertions, 0 deletions
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);