def select_previous(self):
        self._selected_command_index = (self._selected_command_index - 1) % len(self.matches) if len(self.matches) else 0
dataset/ETHPy150Open pindexis/qfc/qfc/core.py/State.select_previous/original