[Python-checkins] python/dist/src/Lib/curses textpad.py, 1.7.2.2, 1.7.2.3

jhylton@users.sourceforge.net jhylton at users.sourceforge.net
Sun Oct 16 07:24:32 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/curses
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27718/Lib/curses

Modified Files:
      Tag: ast-branch
	textpad.py 
Log Message:
Merge head to branch (for the last time)


Index: textpad.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/curses/textpad.py,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -u -d -r1.7.2.2 -r1.7.2.3
--- textpad.py	7 Jan 2005 06:58:14 -0000	1.7.2.2
+++ textpad.py	16 Oct 2005 05:23:59 -0000	1.7.2.3
@@ -53,7 +53,7 @@
         last = self.maxx
         while 1:
             if ascii.ascii(self.win.inch(y, last)) != ascii.SP:
-                last = last + 1
+                last = min(self.maxx, last+1)
                 break
             elif last == 0:
                 break



More information about the Python-checkins mailing list