We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e402e2 commit 37d5fddCopy full SHA for 37d5fdd
bpython/history.py
@@ -23,7 +23,7 @@
23
24
import os
25
import stat
26
-from itertools import islice
+from itertools import islice, chain
27
from typing import Iterable, Optional, List, TextIO
28
29
from .translations import _
@@ -100,7 +100,7 @@ def entry(self) -> str:
100
101
@property
102
def entries_by_index(self) -> List[str]:
103
- return list(reversed(self.entries + [self.saved_line]))
+ return list(chain((self.saved_line, ), reversed(self.entries)))
104
105
def find_match_backward(
106
self, search_term: str, include_current: bool = False
0 commit comments