Skip to content

Commit

Permalink
Fix #62: prompt-toolkit hangs on Windows
Browse files Browse the repository at this point in the history
document.text should be immutable, this will be made expicit in a future version of prompt-toolkit.
  • Loading branch information
donnemartin committed Jun 3, 2016
1 parent f65cb4b commit 6b3f4c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions haxor_news/haxor.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ def run_command(self, document):
"""
try:
if self.paginate_comments:
document.text = self._add_comment_pagination(document.text)
subprocess.call(document.text, shell=True)
text = document.text
text = self._add_comment_pagination(text)
subprocess.call(text, shell=True)
except Exception as e:
click.secho(e, fg='red')

Expand Down

0 comments on commit 6b3f4c8

Please sign in to comment.