QScintilla/Shell.py

branch
maintenance
changeset 6004
548a9ba8c970
parent 5825
9487c08b6a23
parent 5991
1ab3f4de8a4b
child 6050
25a4ddb25ca4
equal deleted inserted replaced
5985:ab851fd69434 6004:548a9ba8c970
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 '):

eric ide

mercurial