QScintilla/Shell.py

branch
6_1_x
changeset 5107
a9dcbeb26ff6
parent 4632
ca310db386ed
child 5127
23fdfb2be857
diff -r dac66bb81340 -r a9dcbeb26ff6 QScintilla/Shell.py
--- 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