[Python-checkins] python/dist/src/Lib/curses textpad.py, 1.8, 1.8.14.1

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Tue Oct 19 21:34:10 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/curses
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv790
Modified Files:
 Tag: release23-maint
	textpad.py 
Log Message:
[Bug #1048816] Fix bug when you do Ctrl-K at the start of a line; fix from Stefan Heimann
Index: textpad.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/curses/textpad.py,v
retrieving revision 1.8
retrieving revision 1.8.14.1
diff -u -d -r1.8 -r1.8.14.1
--- textpad.py	29 Sep 2002 00:25:51 -0000	1.8
+++ textpad.py	19 Oct 2004 19:34:07 -0000	1.8.14.1
@@ -109,6 +109,8 @@
 if x == 0 and self._end_of_line(y) == 0:
 self.win.deleteln()
 else:
+ # first undo the effect of self._end_of_line
+ self.win.move(y, x)
 self.win.clrtoeol()
 elif ch == ascii.FF: # ^l
 self.win.refresh()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /