diff options
Diffstat (limited to 'alot/widgets.py')
-rw-r--r-- | alot/widgets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/widgets.py b/alot/widgets.py index 2b811146..02cf6acb 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -190,10 +190,10 @@ class CompleteEdit(urwid.Edit): else: self.focus_in_clist -= 1 if len(self.completion_results) > 1: - suffix = self.completion_results[self.focus_in_clist % + completed = self.completion_results[self.focus_in_clist % len(self.completion_results)] - self.set_edit_text(original + suffix) - self.edit_pos += len(suffix) + self.set_edit_text(completed) + self.edit_pos += len(completed) else: self.set_edit_text(original + ' ') self.edit_pos += 1 |