Skip to content

Commit 22cb3ca

Browse files
committed
EOL 80
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 254aeaf commit 22cb3ca

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bpython/history.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def __init__(self, entries=None, duplicates=True, hist_size=100):
3737
else:
3838
self.entries = list(entries)
3939
self.index = 0 # how many lines back in history is currently selected
40-
# where 0 is the saved typed line, 1 the prev entered line
40+
# where 0 is the saved typed line, 1 the prev entered
41+
# line
4142
self.saved_line = '' # what was on the prompt before using history
4243
self.duplicates = duplicates
4344
self.hist_size = hist_size
@@ -67,13 +68,15 @@ def first(self):
6768
return self.entries[-self.index]
6869

6970

70-
def back(self, start=True, search=False, target=None, include_current=False):
71+
def back(self, start=True, search=False, target=None,
72+
include_current=False):
7173
"""Move one step back in the history."""
7274
if target is None:
7375
target = self.saved_line
7476
if not self.is_at_end:
7577
if search:
76-
self.index += self.find_partial_match_backward(target, include_current)
78+
self.index += self.find_partial_match_backward(target,
79+
include_current)
7780
elif start:
7881
self.index += self.find_match_backward(target, include_current)
7982
else:
@@ -106,7 +109,8 @@ def find_partial_match_backward(self, search_term, include_current=False):
106109
return 0
107110

108111

109-
def forward(self, start=True, search=False, target=None, include_current=False):
112+
def forward(self, start=True, search=False, target=None,
113+
include_current=False):
110114
"""Move one step forward in the history."""
111115
if target is None:
112116
target = self.saved_line

0 commit comments

Comments
 (0)