summaryrefslogtreecommitdiff
path: root/alot/widgets.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-08-27 22:20:05 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-08-27 22:20:05 +0100
commita227b444c92610caebb05861da69e2222b39c6fc (patch)
treecd10f32a789086b7af321a897601f3765f1771ab /alot/widgets.py
parenta32214f88f41c4919272780412976c8994838d09 (diff)
change completion semantics
Diffstat (limited to 'alot/widgets.py')
-rw-r--r--alot/widgets.py6
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