diff -r e9bda9b4260b -r bf18415da0c7 QScintilla/Shell.py --- a/QScintilla/Shell.py Thu Jan 18 11:10:57 2018 +0100 +++ b/QScintilla/Shell.py Thu Jan 18 18:57:40 2018 +0100 @@ -1125,7 +1125,7 @@ delta = evt.delta() if delta < 0: self.zoomOut() - else: + elif delta > 0: self.zoomIn() evt.accept() return @@ -1660,7 +1660,7 @@ self.__setHistoryIndex(index=-1) elif self.__historyStyle == ShellHistoryStyle.WindowsStyle: if historyIndex is None: - if bool(self.__histidx - 1) and \ + if self.__histidx - 1 > 0 and \ cmd != self.__history[self.__histidx - 1]: self.__setHistoryIndex(index=-1) else: