r53530 - pyrepl/trunk/pyrepl/pyrepl
[email protected] Mon, 7 Apr 2008 18:37:29 +0200 (CEST)
| Newsgroups | gmane.comp.python.pyrepl.checkins |
|---|---|
| Message-ID | <[email protected]> |
Author: arigo
Date: Mon Apr 7 18:37:27 2008
New Revision: 53530
Modified:
pyrepl/trunk/pyrepl/pyrepl/unix_console.py
Log:
Fix a bug. I think. At least the crash disappears, but
I'm not sure about this code so I don't know if this is
a proper fix.
Modified: pyrepl/trunk/pyrepl/pyrepl/unix_console.py
==============================================================================
--- pyrepl/trunk/pyrepl/pyrepl/unix_console.py (original)
+++ pyrepl/trunk/pyrepl/pyrepl/unix_console.py Mon Apr 7 18:37:27 2008
@@ -196,7 +196,7 @@
offset = cy - height + 1
elif offset > 0 and len(screen) < offset + height:
offset = max(len(screen) - height, 0)
- screen.append([])
+ screen.append("")
oldscr = self.screen[old_offset:old_offset + height]
newscr = screen[offset:offset + height]