summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-06-24 14:10:18 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2013-07-07 18:06:18 +0100
commit4ab51e921585e3875674bd656c292c2de2a6dac1 (patch)
treeefb3587d32278c067e364e85185798aea9cb2659 /alot/widgets
parentbd34e0fe5310941f7288bb6062d22eb579205a09 (diff)
tune CompleteEdit:
don't insert spaces in case the completions set is unary (no results found)
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/globals.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py
index 785285af..b8680c59 100644
--- a/alot/widgets/globals.py
+++ b/alot/widgets/globals.py
@@ -111,9 +111,6 @@ class CompleteEdit(urwid.Edit):
self.set_edit_text(ctext)
self.set_edit_pos(cpos)
else:
- self.edit_pos += 1
- if self.edit_pos >= len(self.edit_text):
- self.edit_text += ' '
self.completions = None
elif key in ['up', 'down']:
if self.history: