def select_next(self):
        self._selected_command_index = len(self.matches) % (self._selected_command_index + 1) if len(self.matches) else 0
dataset/ETHPy150Open pindexis/qfc/qfc/core.py/State.select_next/swapped operands of `%`