(self, forward, pt, filergn)
return self.view.line(pt)
Return Region of line for pt within filergn
Return Region of line for pt within filergn
Return Region of line for pt within filergn
def next_line(self, forward, pt, filergn):
        '''Return Region of line for pt within filergn'''
        if filergn.contains(pt):
            # Try moving by one line.
            line = self.view.line(pt)
            pt = forward and (line.b + 1) or (line.a - 1)
        if not filergn.contains(pt):
            # Not (or no longer) in the list of files, so move to the closest edge.
            pt = (pt > filergn.b) and filergn.b or filergn.a
        return self.view.line(pt)
def next_line ( self , forward , pt , filergn ) : if filergn . contains ( pt ) : # Try moving by one line. line = self . view . line ( pt ) pt = forward and ( line . b + 1 ) or ( line . a - 1 ) if not filergn . contains ( pt ) : # Not (or no longer) in the list of files, so move to the closest edge. pt = ( pt > filergn . b ) and filergn . b or filergn . a return self . view . line ( pt )