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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 20 Feb 2016 16:09:11 +0100
changeset 4757
866050e987de
parent 4756
ba3986ab9b20
child 4765
475c5cbfc8f0

Fixed a serious bug in the editor search widget causing a traceback in the mini editor.
(grafted from d10db298c9d67f443875f8e4dfa9522dd9c2938a)

QScintilla/SearchReplaceWidget.py file | annotate | diff | comparison | revisions
--- a/QScintilla/SearchReplaceWidget.py	Sat Feb 20 16:10:25 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