src/eric7/QScintilla/Editor.py

branch
eric7
changeset 10908
ef1b3cd9a6ca
parent 10895
11069c6bfff0
child 10926
9ef616cd220d
--- a/src/eric7/QScintilla/Editor.py	Tue Sep 03 17:28:40 2024 +0200
+++ b/src/eric7/QScintilla/Editor.py	Tue Sep 03 17:42:44 2024 +0200
@@ -7399,7 +7399,7 @@
         regExp = re.compile(
             "|".join(Editor.VcsConflictMarkerLineRegExpList), re.MULTILINE
         )
-        matches = [m for m in regExp.finditer(self.text())]
+        matches = list(regExp.finditer(self.text()))
         for match in matches:
             line, _ = self.lineIndexFromPosition(match.start())
             conflictMarkerLines.append(line)
@@ -9635,7 +9635,7 @@
         regExp = re.compile(r"\b{0}\b".format(word))
         startPos = wordEndPos if forward else wordStartPos
 
-        matches = [m for m in regExp.finditer(self.text())]
+        matches = list(regExp.finditer(self.text()))
         if matches:
             if forward:
                 matchesAfter = [m for m in matches if m.start() >= startPos]

eric ide

mercurial