[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wtext.py,1.10,1.11

Just van Rossum jvr@users.sourceforge.net
Thu, 21 Jun 2001 10:51:19 -0700


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv32009

Modified Files:
	Wtext.py 
Log Message:
repaired expandselection and uncomment breakage

Index: Wtext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wtext.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** Wtext.py	2001/06/19 21:37:33	1.10
--- Wtext.py	2001/06/21 17:51:17	1.11
***************
*** 280,285 ****
  		if selstart <> selend and chr(self.ted.WEGetChar(selend-1)) == '\r':
  			selend = selend - 1
! 		newselstart, dummy = self.ted.WEFindLine(selstart, 0)
! 		dummy, newselend = self.ted.WEFindLine(selend, 0)
  		if oldselstart <> newselstart or  oldselend <> newselend:
  			self.ted.WESetSelection(newselstart, newselend)
--- 280,285 ----
  		if selstart <> selend and chr(self.ted.WEGetChar(selend-1)) == '\r':
  			selend = selend - 1
! 		newselstart, dummy = self.ted.WEFindLine(selstart, 1)
! 		dummy, newselend = self.ted.WEFindLine(selend, 1)
  		if oldselstart <> newselstart or  oldselend <> newselend:
  			self.ted.WESetSelection(newselstart, newselend)
***************
*** 609,614 ****
  
  import re
! commentPat = re.compile("[ \t]*\(#\)")
! indentPat = re.compile("\t*")
  
  class PyEditor(TextEditor):
--- 609,615 ----
  
  import re
! commentPat = re.compile("[ \t]*(#)")
! indentPat = re.compile("[ \t]*")
! 
  
  class PyEditor(TextEditor):