Fixed a serious bug in the editor search widget causing a traceback in the mini editor. 6_1_x

Sat, 20 Feb 2016 16:09:11 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 20 Feb 2016 16:09:11 +0100
branch
6_1_x
changeset 4755
d10db298c9d6
parent 4748
ab2ca2fe65ae
child 4764
429cc4f5893a

Fixed a serious bug in the editor search widget causing a traceback in the mini editor.

QScintilla/SearchReplaceWidget.py file | annotate | diff | comparison | revisions
--- a/QScintilla/SearchReplaceWidget.py	Fri Feb 19 18:08:11 2016 +0100
+++ b/QScintilla/SearchReplaceWidget.py	Sat Feb 20 16:09:11 2016 +0100
@@ -351,7 +351,11 @@
             if indicate:
                 aw.setSearchIndicator(tgtPos, tgtLen)
             ok = aw.findNextTarget()
-        aw.updateMarkerMap()
+        try:
+            aw.updateMarkerMap()
+        except AttributeError:
+            # MiniEditor doesn't have this, ignore it
+            pass
     
     def __findNextPrev(self, txt, backwards):
         """

eric ide

mercurial