QScintilla/Shell.py

branch
maintenance
changeset 6097
bf18415da0c7
parent 6050
25a4ddb25ca4
parent 6086
fff3959796a9
child 6319
df201b9fbad4
equal deleted inserted replaced
6071:e9bda9b4260b 6097:bf18415da0c7
1123 delta = evt.angleDelta().y() 1123 delta = evt.angleDelta().y()
1124 else: 1124 else:
1125 delta = evt.delta() 1125 delta = evt.delta()
1126 if delta < 0: 1126 if delta < 0:
1127 self.zoomOut() 1127 self.zoomOut()
1128 else: 1128 elif delta > 0:
1129 self.zoomIn() 1129 self.zoomIn()
1130 evt.accept() 1130 evt.accept()
1131 return 1131 return
1132 1132
1133 super(Shell, self).wheelEvent(evt) 1133 super(Shell, self).wheelEvent(evt)
1658 self.__history.append(cmd) 1658 self.__history.append(cmd)
1659 if self.__historyStyle == ShellHistoryStyle.LinuxStyle: 1659 if self.__historyStyle == ShellHistoryStyle.LinuxStyle:
1660 self.__setHistoryIndex(index=-1) 1660 self.__setHistoryIndex(index=-1)
1661 elif self.__historyStyle == ShellHistoryStyle.WindowsStyle: 1661 elif self.__historyStyle == ShellHistoryStyle.WindowsStyle:
1662 if historyIndex is None: 1662 if historyIndex is None:
1663 if bool(self.__histidx - 1) and \ 1663 if self.__histidx - 1 > 0 and \
1664 cmd != self.__history[self.__histidx - 1]: 1664 cmd != self.__history[self.__histidx - 1]:
1665 self.__setHistoryIndex(index=-1) 1665 self.__setHistoryIndex(index=-1)
1666 else: 1666 else:
1667 self.__setHistoryIndex(historyIndex) 1667 self.__setHistoryIndex(historyIndex)
1668 1668

eric ide

mercurial