Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory sc8-pr-cvs1:/tmp/cvs-serv21324
Modified Files:
IDLEenvironment.py
Log Message:
Fix problem with -ve indexes
Index: IDLEenvironment.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/IDLEenvironment.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** IDLEenvironment.py 18 Apr 2002 02:15:51 -0000 1.8
--- IDLEenvironment.py 2 Jul 2003 04:09:55 -0000 1.9
***************
*** 271,276 ****
else:
raise ValueError, "Unsupported relative offset '%s'" % word
! return pos
! # return max(pos, 0) # Tkinter is tollerant of -ve indexes.
# A class that resembles an IDLE (ie, a Tk) text widget.
--- 271,275 ----
else:
raise ValueError, "Unsupported relative offset '%s'" % word
! return max(pos, 0) # Tkinter is tollerant of -ve indexes - we aren't
# A class that resembles an IDLE (ie, a Tk) text widget.
|