mercurial/mdiff.py
changeset 7436 07faba78cf5a
parent 7204 ad28279053ef
child 8225 46293a0c7e9f
equal deleted inserted replaced
7435:5e13df32fb74 7436:07faba78cf5a
   158 
   158 
   159         func = ""
   159         func = ""
   160         if opts.showfunc:
   160         if opts.showfunc:
   161             # walk backwards from the start of the context
   161             # walk backwards from the start of the context
   162             # to find a line starting with an alphanumeric char.
   162             # to find a line starting with an alphanumeric char.
   163             for x in xrange(astart, -1, -1):
   163             for x in xrange(astart - 1, -1, -1):
   164                 t = l1[x].rstrip()
   164                 t = l1[x].rstrip()
   165                 if funcre.match(t):
   165                 if funcre.match(t):
   166                     func = ' ' + t[:40]
   166                     func = ' ' + t[:40]
   167                     break
   167                     break
   168 
   168