Skip to content

Commit 973e82a

Browse files
committed
Revert dff0350c24b1, as it doesn't really work and causes some issues with PYTHINSTARTUP.
This reopens issue #89.
1 parent d2d3702 commit 973e82a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

bpython/cli.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,6 @@ def echo(self, s, redraw=True):
459459
# Replace NUL bytes, as addstr raises an exception otherwise
460460
s = s.replace('\x00', '')
461461

462-
screen_height, screen_width = self.scr.getmaxyx()
463-
if self.iy >= (screen_height - 1):
464-
lines = (self.ix + len(s)) // screen_width
465-
if lines > 0:
466-
self.scr.scroll(lines)
467-
self.iy -= lines
468-
self.scr.move(self.iy, self.ix)
469462
self.scr.addstr(s, a)
470463

471464
if redraw and not self.evaluating:

0 commit comments

Comments
 (0)