Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed bug with sys.stdin.readline()
  • Loading branch information
TheQu1etOwl authored Aug 22, 2021
commit fadc1fba1822a5bd89c4f3dc567c7c036f2e9aa2
10 changes: 6 additions & 4 deletions bpython/curtsies.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ def process_event_and_paint(self, e):
self.scroll_offset += scrolled
raise
else:
array, cursor_pos = self.paint()
scrolled = self.window.render_to_terminal(array, cursor_pos)
self.scroll_offset += scrolled

try:
array, cursor_pos = self.paint()
scrolled = self.window.render_to_terminal(array, cursor_pos)
self.scroll_offset += scrolled
except TypeError:
...
def mainloop(self, interactive=True, paste=None):
if interactive:
# Add custom help command
Expand Down