diff options
author | pazz <patricktotzke@gmail.com> | 2011-07-22 20:02:32 +0100 |
---|---|---|
committer | pazz <patricktotzke@gmail.com> | 2011-07-22 20:02:32 +0100 |
commit | f51175abbf0ef78209d6525c031a42d0ac706967 (patch) | |
tree | c8de9eb0ce79e1b3ec554c17ae47484240e14ec0 /alot/commands.py | |
parent | 3575347978d060f0baa1369dc12496473f0c37cc (diff) |
start with first completion when selecting account
Diffstat (limited to 'alot/commands.py')
-rw-r--r-- | alot/commands.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/commands.py b/alot/commands.py index 2357db21..6324988a 100644 --- a/alot/commands.py +++ b/alot/commands.py @@ -386,13 +386,12 @@ class ComposeCommand(Command): elif len(accounts) == 1: a = accounts[0] else: - # TODO: completer for accounts cmpl = AccountCompleter() - fromaddress = ui.prompt(prefix='From>',completer=cmpl) + fromaddress = ui.prompt(prefix='From>', completer=cmpl, tab=1) validaddresses = [a.address for a in accounts] + [None] while fromaddress not in validaddresses: ui.notify('couldn\'t find a matching account. (<esc> cancels)') - fromaddress = ui.prompt(prefix='From>',completer=cmpl) + fromaddress = ui.prompt(prefix='From>', completer=cmpl) if not fromaddress: ui.notify('canceled') return |