QScintilla/Shell.py

changeset 5991
1ab3f4de8a4b
parent 5800
c3379bf35654
child 6004
548a9ba8c970
child 6029
0ce26b97e2c0
equal deleted inserted replaced
5990:60022b63b51c 5991:1ab3f4de8a4b
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