mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Merge pull request #382 from jonathanslenders/prompt_toolkit_0.50
Added LimitedFileHistory.__iter__. Required for prompt_toolkit==0.50
This commit is contained in:
commit
5e2f44e100
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ class LimitedFileHistory(History):
|
|||
def __len__(self):
|
||||
return len(self.strings)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.strings)
|
||||
|
||||
def read_history_file(self, filename):
|
||||
"""Read history from given file into memory.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue