Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b10eb84

Browse files
committed
repaired expandselection and uncomment breakage
1 parent 50cb38d commit b10eb84

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Mac/Tools/IDE/Wtext.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ def expandselection(self):
279279
selstart, selend = min(oldselstart, oldselend), max(oldselstart, oldselend)
280280
if selstart <> selend and chr(self.ted.WEGetChar(selend-1)) == '\r':
281281
selend = selend - 1
282-
newselstart, dummy = self.ted.WEFindLine(selstart, 0)
283-
dummy, newselend = self.ted.WEFindLine(selend, 0)
282+
newselstart, dummy = self.ted.WEFindLine(selstart, 1)
283+
dummy, newselend = self.ted.WEFindLine(selend, 1)
284284
if oldselstart <> newselstart or oldselend <> newselend:
285285
self.ted.WESetSelection(newselstart, newselend)
286286
self.updatescrollbars()
@@ -608,8 +608,9 @@ def draw(self, visRgn = None):
608608

609609

610610
import re
611-
commentPat = re.compile("[ \t]*\(#\)")
612-
indentPat = re.compile("\t*")
611+
commentPat = re.compile("[ \t]*(#)")
612+
indentPat = re.compile("[ \t]*")
613+
613614

614615
class PyEditor(TextEditor):
615616

0 commit comments

Comments
 (0)