QScintilla/Shell.py

branch
maintenance
changeset 6097
bf18415da0c7
parent 6050
25a4ddb25ca4
parent 6086
fff3959796a9
child 6319
df201b9fbad4
--- 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:

eric ide

mercurial