repaired expandselection and uncomment breakage
diff --git a/Mac/Tools/IDE/Wtext.py b/Mac/Tools/IDE/Wtext.py
index 1518683..3b8973a 100644
--- a/Mac/Tools/IDE/Wtext.py
+++ b/Mac/Tools/IDE/Wtext.py
@@ -279,8 +279,8 @@
 		selstart, selend = min(oldselstart, oldselend), max(oldselstart, oldselend)
 		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)
+		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)
 			self.updatescrollbars()
@@ -608,8 +608,9 @@
 
 
 import re
-commentPat = re.compile("[ \t]*\(#\)")
-indentPat = re.compile("\t*")
+commentPat = re.compile("[ \t]*(#)")
+indentPat = re.compile("[ \t]*")
+
 
 class PyEditor(TextEditor):