summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-24 19:34:23 +0200
committermathieui <mathieui@mathieui.net>2016-06-24 19:34:23 +0200
commit76a890acc7c9938ed4a7db20693f808889362220 (patch)
tree17ccf5b4420539f6482b3d7462b9c0504592d470
parent633d023a6ca21eea97ba0da55f0d91439eb6f9c1 (diff)
downloadpoezio-76a890acc7c9938ed4a7db20693f808889362220.tar.gz
poezio-76a890acc7c9938ed4a7db20693f808889362220.tar.bz2
poezio-76a890acc7c9938ed4a7db20693f808889362220.tar.xz
poezio-76a890acc7c9938ed4a7db20693f808889362220.zip
Fix #3203 (indent contact and resources in the roster)
-rw-r--r--poezio/windows/roster_win.py9
1 files 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):