Fix an index error in the Shell.

Wed, 24 Jan 2018 19:08:08 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 24 Jan 2018 19:08:08 +0100
changeset 6086
fff3959796a9
parent 6085
7e48a0d98cce
child 6087
23da86c1ba4d

Fix an index error in the Shell.

QScintilla/Shell.py file | annotate | diff | comparison | revisions
diff -r 7e48a0d98cce -r fff3959796a9 QScintilla/Shell.py
--- 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