1 file changed
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | 24 | import os | |
| 25 | 25 | import stat | |
| 26 | - from itertools import islice | ||
| 26 | + from itertools import islice, chain | ||
| 27 | 27 | from typing import Iterable, Optional, List, TextIO | |
| 28 | 28 | ||
| 29 | 29 | from .translations import _ | |
@@ -100,7 +100,7 @@ def entry(self) -> str: | |||
| 100 | 100 | ||
| 101 | 101 | @property | |
| 102 | 102 | def entries_by_index(self) -> List[str]: | |
| 103 | - return list(reversed(self.entries + [self.saved_line])) | ||
| 103 | + return list(chain((self.saved_line, ), reversed(self.entries))) | ||
| 104 | 104 | ||
| 105 | 105 | def find_match_backward( | |
| 106 | 106 | self, search_term: str, include_current: bool = False | |
0 commit comments