added max column width for comments

This commit is contained in:
Alexandre Kaskasoli
2016-09-28 21:10:33 +01:00
parent b02d867c47
commit 29c1d06662
2 changed files with 6 additions and 4 deletions

View File

@@ -25,10 +25,12 @@ class SubmissionPage(Page):
self.controller = SubmissionController(self, keymap=config.keymap)
if url:
self.content = SubmissionContent.from_url(reddit, url, term.loader,
self.content = SubmissionContent.from_url(
reddit, url, term.loader,
max_comment_cols=config['max_comment_cols'])
else:
self.content = SubmissionContent(submission, term.loader,
self.content = SubmissionContent(
submission, term.loader,
max_comment_cols=config['max_comment_cols'])
# Start at the submission post, which is indexed as -1
self.nav = Navigator(self.content.get, page_index=-1)