(self, forward=None)
Moves the cursor one line forward or backwards.  Clears all sections.
Moves the cursor one line forward or backwards.  Clears all sections.
Moves the cursor one line forward or backwards . Clears all sections .
def move(self, forward=None):
        """
        Moves the cursor one line forward or backwards.  Clears all sections.
        """
        assert forward in (True, False), 'forward must be set to True or False'

        files = self.fileregion(with_parent_link=True)
        if not files:
            return

        new_sels = []
        for s in list(self.view.sel()):
            new_sels.append(self._get_name_point(self.next_line(forward, s.a, files)))

        self.view.sel().clear()
        for n in new_sels:
            self.view.sel().add(Region(n, n))
        name_point = new_sels[~0] if forward else new_sels[0]
        surroundings = True if self.view.rowcol(name_point)[0] < 3 else False
        self.view.show(name_point, surroundings)
def move ( self , forward = None ) : assert forward in ( True , False ) , 'forward must be set to True or False' files = self . fileregion ( with_parent_link = True ) if not files : return new_sels = [ ] for s in list ( self . view . sel ( ) ) : new_sels . append ( self . _get_name_point ( self . next_line ( forward , s . a , files ) ) ) self . view . sel ( ) . clear ( ) for n in new_sels : self . view . sel ( ) . add ( Region ( n , n ) ) name_point = new_sels [ ~ 0 ] if forward else new_sels [ 0 ] surroundings = True if self . view . rowcol ( name_point ) [ 0 ] < 3 else False self . view . show ( name_point , surroundings )