summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-11 21:52:55 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-11 21:52:55 +0100
commitdb8a5c2d3466d3ad7b749c312e6bc019b087b29d (patch)
treefd7498a5b1f4b6f0971eaf7a6df94318b761fc13 /alot
parentf109ec0f09b840868b6a5e9a2327f5d72a806987 (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.py2
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]