1601 self.__history.append(cmd) |
1601 self.__history.append(cmd) |
1602 if self.__historyStyle == ShellHistoryStyle.LinuxStyle: |
1602 if self.__historyStyle == ShellHistoryStyle.LinuxStyle: |
1603 self.__setHistoryIndex(index=-1) |
1603 self.__setHistoryIndex(index=-1) |
1604 elif self.__historyStyle == ShellHistoryStyle.WindowsStyle: |
1604 elif self.__historyStyle == ShellHistoryStyle.WindowsStyle: |
1605 if historyIndex is None: |
1605 if historyIndex is None: |
1606 if cmd != self.__history[self.__histidx - 1]: |
1606 if bool(self.__histidx - 1) and \ |
|
1607 cmd != self.__history[self.__histidx - 1]: |
1607 self.__setHistoryIndex(index=-1) |
1608 self.__setHistoryIndex(index=-1) |
1608 else: |
1609 else: |
1609 self.__setHistoryIndex(historyIndex) |
1610 self.__setHistoryIndex(historyIndex) |
1610 |
1611 |
1611 if cmd.startswith('start '): |
1612 if cmd.startswith('start '): |