Skip to content

Commit c129420

Browse files
fix redraw of history on making screen smaller
1 parent 8ce3c37 commit c129420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/curtsiesfrontend/replpainter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def display_linize(msg, columns):
2929
def paint_history(rows, columns, display_lines):
3030
lines = []
3131
for r, line in zip(range(rows), display_lines[-rows:]):
32-
lines.append(fmtstr(line))
32+
lines.append(fmtstr(line[:columns]))
3333
r = fsarray(lines, width=columns)
3434
assert r.shape[0] <= rows, repr(r.shape)+' '+repr(rows)
3535
assert r.shape[1] <= columns, repr(r.shape)+' '+repr(columns)

0 commit comments

Comments
 (0)