Revert changes to cmdhistory.py.
This commit is contained in:
parent
4544c78395
commit
3e8136e353
@ -63,7 +63,6 @@ class History(QObject):
|
||||
super().__init__(parent)
|
||||
self.handle_private_mode = False
|
||||
self._tmphist = None
|
||||
|
||||
if history is None:
|
||||
self.history = []
|
||||
else:
|
||||
@ -110,7 +109,7 @@ class History(QObject):
|
||||
try:
|
||||
return self._tmphist.previtem()
|
||||
except IndexError:
|
||||
raise HistoryEndReachedError("History end reached")
|
||||
raise HistoryEndReachedError
|
||||
|
||||
def nextitem(self):
|
||||
"""Get the next item in the temp history.
|
||||
@ -122,7 +121,7 @@ class History(QObject):
|
||||
try:
|
||||
return self._tmphist.nextitem()
|
||||
except IndexError:
|
||||
raise HistoryEndReachedError("History end reached")
|
||||
raise HistoryEndReachedError
|
||||
|
||||
def append(self, text):
|
||||
"""Append a new item to the history.
|
||||
|
Loading…
Reference in New Issue
Block a user