Commits

Steve Borho committed c0459f8

qscilib: give indicatorDefine's indicatorNumber argument a default value

Comments (0)

Files changed (1)

tortoisehg/hgqt/qscilib.py

             QsciScintilla.StrikeIndicator = self.INDIC_STRIKE
 
         if not hasattr(self, 'indicatorDefine'):
-            def indicatorDefine(style, indicatorNumber):
+            def indicatorDefine(style, indicatorNumber=-1):
                 # compatibility layer allows only one indicator to be defined
                 if indicatorNumber == -1:
                     indicatorNumber = 1