QScintilla/Shell.py

changeset 6086
fff3959796a9
parent 6081
7ea61bd1aa23
child 6097
bf18415da0c7
child 6305
7652b925c25e
--- a/QScintilla/Shell.py	Wed Jan 24 18:45:50 2018 +0100
+++ b/QScintilla/Shell.py	Wed Jan 24 19:08:08 2018 +0100
@@ -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