Fixed a bug in the shell related to clearing the current history. 6_1_x

Wed, 24 Aug 2016 19:51:38 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 24 Aug 2016 19:51:38 +0200
branch
6_1_x
changeset 5107
a9dcbeb26ff6
parent 5103
dac66bb81340
child 5111
931431b2646c

Fixed a bug in the shell related to clearing the current history.

QScintilla/Shell.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Shell.py	Thu Aug 18 17:34:05 2016 +0200
+++ b/QScintilla/Shell.py	Wed Aug 24 19:51:38 2016 +0200
@@ -576,7 +576,12 @@
         """
         Private slot to clear the current history.
         """
-        self.history = []
+        if self.clientType:
+            self.historyLists[self.clientType] = []
+            self.history = self.historyLists[self.clientType]
+        else:
+            self.history = []
+        self.histidx = -1
         
     def __selectHistory(self):
         """

eric ide

mercurial