diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-22 00:10:08 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-22 00:10:08 +0200 |
commit | ecdb1166e1cead31518c058a0e7fd749e61b193e (patch) | |
tree | 74d4a572deec7c057e6c66f33873eee4d1af2bb1 /ui | |
parent | 442fdac4d5b949e556e94b0be53f2208709e8bf3 (diff) |
Fix invite parentheses in member list
Diffstat (limited to 'ui')
-rw-r--r-- | ui/member-list.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/member-list.go b/ui/member-list.go index b607a32..aaddcfb 100644 --- a/ui/member-list.go +++ b/ui/member-list.go @@ -111,13 +111,13 @@ func (ml *MemberList) Draw(screen mauview.Screen) { screen.SetCell(0, y, sigilStyle, member.Sigil) } if member.Membership == "invite" { + widget.WriteLineSimpleColor(screen, member.Displayname, 2, y, member.Color) screen.SetCell(1, y, tcell.StyleDefault, '(') - if sw := runewidth.StringWidth(member.Displayname); sw < width-1 { - screen.SetCell(sw+1, y, tcell.StyleDefault, ')') + if sw := runewidth.StringWidth(member.Displayname); sw+2 < width { + screen.SetCell(sw+2, y, tcell.StyleDefault, ')') } else { screen.SetCell(width-1, y, tcell.StyleDefault, ')') } - widget.WriteLineSimpleColor(screen, member.Displayname, 2, y, member.Color) } else { widget.WriteLineSimpleColor(screen, member.Displayname, 1, y, member.Color) } |