summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-01-12 12:01:10 -0800
committerDylan Baker <dylan@pnwbakers.com>2017-01-12 12:01:10 -0800
commitebebe7d1e2c84bbe552b809743f6c1cbdea882ea (patch)
tree3adf1296286aa6c3568b8a1fcb69c08727ebd447
parent5d2dad9c8e22ab6d40c6dd72e082bd50b17e85b7 (diff)
alot/completion: revert premature optimization
The change this is partially reverting removed a variable assignment that was actually needed. Fixes #962
-rw-r--r--alot/completion.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/completion.py b/alot/completion.py
index cb9bbad8..41d04b8d 100644
--- a/alot/completion.py
+++ b/alot/completion.py
@@ -417,7 +417,8 @@ class CommandCompleter(Completer):
def f((completed, pos)):
return ('%s %s' % (header, completed),
pos + len(header) + 1)
- logging.debug(f(r) for r in res)
+ res = [f(r) for r in res]
+ logging.debug(res)
elif self.mode == 'envelope' and cmd == 'unset':
plist = params.split(' ', 1)