Skip to content

Commit 8ce3c37

Browse files
fix cursties -> curtsies typoe and another bug
--HG-- branch : scroll-frontend
1 parent 33ecf72 commit 8ce3c37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def paint(self, about_to_exit=False):
625625
current_line_start_row = len(self.lines_for_display) - max(0, self.scroll_offset)
626626
if self.request_paint_to_clear_screen: # or show_status_bar and about_to_exit ?
627627
self.request_paint_to_clear_screen = False
628-
if self.config.cursties_fill_terminal: #TODO clean up this logic - really necessary check?
628+
if self.config.curtsies_fill_terminal: #TODO clean up this logic - really necessary check?
629629
arr = FSArray(self.height - 1 + current_line_start_row, width)
630630
else:
631631
arr = FSArray(self.height + current_line_start_row, width)

bpython/curtsiesfrontend/replpainter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def paint_infobox(rows, columns, matches, argspec, match, docstring, config):
167167
return r
168168

169169
def paint_last_events(rows, columns, names):
170+
if not names:
171+
return fsarray([])
170172
width = min(max(len(name) for name in names), columns-2)
171173
output_lines = []
172174
output_lines.append(u'┌'+u'─'*width+u'┐')

0 commit comments

Comments
 (0)