(self)
Navigate right
Navigate right
Navigate right
def nav_right(self):
        '''Navigate right'''

        self.find_rem = []
        self.find_pos = 0
        if self.dir_cont[self.highlight] == '..':
            last = self.control.cur_dir.split('/')[-1]
            self.control.cur_dir = self.control.cur_dir[:-len(last) - 1]
            if self.control.cur_dir == '':
                self.control.cur_dir = '/'
            self.highlight = 0
            self.get_dir_cont()
        elif isdir(self.control.cur_dir + '/' + self.dir_cont[self.highlight]):
            self.control.cur_dir = (self.control.cur_dir + '/' +
                                    self.dir_cont[self.highlight])
            if self.control.cur_dir[:2] == '//':
                self.control.cur_dir = self.control.cur_dir[1:]
            self.highlight = 0
            self.get_dir_cont()
        else:
            ret = self.control.cur_dir + '/' + self.dir_cont[self.highlight]
            if self.kdb_file is not None:
                self.control.cur_dir = self.kdb_file
            self.return_flag = True
            return ret
def nav_right ( self ) : self . find_rem = [ ] self . find_pos = 0 if self . dir_cont [ self . highlight ] == '..' : last = self . control . cur_dir . split ( '/' ) [ - 1 ] self . control . cur_dir = self . control . cur_dir [ : - len ( last ) - 1 ] if self . control . cur_dir == '' : self . control . cur_dir = '/' self . highlight = 0 self . get_dir_cont ( ) elif isdir ( self . control . cur_dir + '/' + self . dir_cont [ self . highlight ] ) : self . control . cur_dir = ( self . control . cur_dir + '/' + self . dir_cont [ self . highlight ] ) if self . control . cur_dir [ : 2 ] == '//' : self . control . cur_dir = self . control . cur_dir [ 1 : ] self . highlight = 0 self . get_dir_cont ( ) else : ret = self . control . cur_dir + '/' + self . dir_cont [ self . highlight ] if self . kdb_file is not None : self . control . cur_dir = self . kdb_file self . return_flag = True return ret