From 76a890acc7c9938ed4a7db20693f808889362220 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 24 Jun 2016 19:34:23 +0200 Subject: Fix #3203 (indent contact and resources in the roster) --- poezio/windows/roster_win.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/poezio/windows/roster_win.py b/poezio/windows/roster_win.py index a2e2badd..f024fae5 100644 --- a/poezio/windows/roster_win.py +++ b/poezio/windows/roster_win.py @@ -239,7 +239,10 @@ class RosterWin(Win): self.addstr(' ') if resource: self.addstr('[+] ' if contact.folded(group) else '[-] ') - added += 4 + else: + self.addstr(' ') + added += 4 + if contact.ask: added += len(get_theme().CHAR_ROSTER_ASKED) if show_s2s_errors and contact.error: @@ -292,9 +295,9 @@ class RosterWin(Win): color = get_theme().color_show(resource.presence) self.addstr(y, 4, get_theme().CHAR_STATUS, to_curses_attr(color)) if colored: - self.addstr(y, 6, self.truncate_name(str(resource.jid), 6), to_curses_attr(get_theme().COLOR_SELECTED_ROW)) + self.addstr(y, 8, self.truncate_name(str(resource.jid), 6), to_curses_attr(get_theme().COLOR_SELECTED_ROW)) else: - self.addstr(y, 6, self.truncate_name(str(resource.jid), 6)) + self.addstr(y, 8, self.truncate_name(str(resource.jid), 6)) self.finish_line() def get_selected_row(self): -- cgit v1.2.3