[pyrepl-checkins] r53530 - pyrepl/trunk/pyrepl/pyrepl

arigo at codespeak.net arigo at codespeak.net
Mon Apr 7 18:37:29 CEST 2008


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]


More information about the pyrepl-checkins mailing list