We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a36c7a commit 7369114Copy full SHA for 7369114
1 file changed
bpython/repl.py
@@ -242,7 +242,10 @@ def next(self):
242
return self.matches[self.index]
243
244
def previous(self):
245
- self.index = (self.index - 1) % len(self.matches)
+ if self.index <= 0:
246
+ self.index = len(self.matches)
247
+ self.index -= 1
248
+
249
250
251
def update(self, current_word='', matches=[]):
0 commit comments