[Python-checkins] python/dist/src/Tools/idle EditorWindow.py,1.38.18.1,1.38.18.2

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
2002年9月23日 07:06:27 -0700


Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv20826
Modified Files:
 Tag: release22-maint
	EditorWindow.py 
Log Message:
Backport:
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error
Use // where int division is intended. 
Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/EditorWindow.py,v
retrieving revision 1.38.18.1
retrieving revision 1.38.18.2
diff -C2 -d -r1.38.18.1 -r1.38.18.2
*** EditorWindow.py	23 Sep 2002 14:01:39 -0000	1.38.18.1
--- EditorWindow.py	23 Sep 2002 14:06:24 -0000	1.38.18.2
***************
*** 467,471 ****
 lineno = self.getlineno(mark)
 height = bot - top
! newtop = max(1, lineno - height/2)
 text.yview(float(newtop))
 
--- 467,471 ----
 lineno = self.getlineno(mark)
 height = bot - top
! newtop = max(1, lineno - height//2)
 text.yview(float(newtop))
 

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