about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/occupantswin.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/occupantswin.c b/src/ui/occupantswin.c
index 37dfb9e2..46b44b78 100644
--- a/src/ui/occupantswin.c
+++ b/src/ui/occupantswin.c
@@ -46,27 +46,35 @@ _occuptantswin_occupant(ProfLayoutSplit *layout, Occupant *occupant, gboolean sh
     theme_item_t presence_colour = theme_main_presence_attrs(presence_str);
     wattron(layout->subwin, theme_attrs(presence_colour));
 
-    GString *msg = g_string_new(" ");
+    GString *spaces = g_string_new(" ");
 
     int indent = prefs_get_occupants_indent();
     if (indent > 0) {
         while (indent > 0) {
-            g_string_append(msg, " ");
+            g_string_append(spaces, " ");
             indent--;
         }
     }
 
+    GString *msg = g_string_new("");
+    g_string_append(msg, spaces->str);
+
     g_string_append(msg, occupant->nick);
     win_sub_print(layout->subwin, msg->str, TRUE, FALSE, 0);
     g_string_free(msg, TRUE);
 
     if (showjid && occupant->jid) {
-        GString *msg = g_string_new("     ");
+        GString *msg = g_string_new("");
+        g_string_append(msg, spaces->str);
+        g_string_append(msg, " ");
+
         g_string_append(msg, occupant->jid);
         win_sub_print(layout->subwin, msg->str, TRUE, FALSE, 0);
         g_string_free(msg, TRUE);
     }
 
+    g_string_free(spaces, TRUE);
+
     wattroff(layout->subwin, theme_attrs(presence_colour));
 }
 
/vimrc.vim?h=main&id=5beb25b508812b68c014a71f664be7ae45bc3c13'>5beb25b5 ^
e59a91b7 ^
a8f47b4a ^

b3cdcdd4 ^
a9817844 ^
a9817844 ^
bff79aeb ^

a9817844 ^
b96af395 ^






bc394aaf ^

3dfeaaff ^













694d8485 ^
14da19a2 ^
694d8485 ^
14da19a2 ^
694d8485 ^
bc394aaf ^
857ba192 ^




399f5c13 ^
857ba192 ^
399f5c13 ^
5e5f569c ^
674cf583 ^




ed4e6453 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78