diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-11 21:52:55 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-11 21:52:55 +0100 |
commit | db8a5c2d3466d3ad7b749c312e6bc019b087b29d (patch) | |
tree | fd7498a5b1f4b6f0971eaf7a6df94318b761fc13 /alot | |
parent | f109ec0f09b840868b6a5e9a2327f5d72a806987 (diff) |
fix nasty updating of COMMANDS by completer
This updates command.COMMANDS['global'], with the effect that
'select' points to something else than SendKeypressCommand.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/completion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/completion.py b/alot/completion.py index 94f7fcf7..43796e5c 100644 --- a/alot/completion.py +++ b/alot/completion.py @@ -158,7 +158,7 @@ class CommandCompleter(Completer): #TODO refine <tab> should get current querystring commandprefix = original[:pos] logging.debug('original="%s" prefix="%s"' % (original, commandprefix)) - cmdlist = command.COMMANDS['global'] + cmdlist = command.COMMANDS['global'].copy() cmdlist.update(command.COMMANDS[self.mode]) matching = [t for t in cmdlist if t.startswith(commandprefix)] return [(t, len(t)) for t in matching] |