Wrap subreddit title instead of name

This commit is contained in:
Théo Piboubès
2015-08-12 15:27:55 +02:00
parent 691986abd4
commit 2c7a0ed4ba
2 changed files with 4 additions and 4 deletions

View File

@@ -66,9 +66,9 @@ class SubscriptionPage(BasePage):
n_title = len(data['split_title'])
for row, text in enumerate(data['split_title'], start=offset):
if row in valid_rows:
attr = curses.A_BOLD | Color.YELLOW
add_line(win, u'{name}'.format(**data), row, 1, attr)
add_line(win, text, row, 1)
row = n_title + offset
if row in valid_rows:
add_line(win, u'{title}'.format(**data), row, 1)
attr = curses.A_BOLD | Color.YELLOW
add_line(win, u'{name}'.format(**data), row, 1, attr)