summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/commands/globals.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index ac5480e3..39262fe8 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -755,9 +755,8 @@ class CommandSequenceCommand(Command):
@inlineCallbacks
def apply(self, ui):
- for cmd in self.commandlist:
- logging.debug('CMDSEQ: apply %s' % str(cmd))
- yield ui.apply(cmd)
+ for cmdstring in self.commandlist:
+ logging.debug('CMDSEQ: apply %s' % str(cmdstring))
# translate cmdstring into :class:`Command`
- cmd = commandfactory(cstring, ui.mode)
- ui.apply_command(cmd)
+ cmd = commandfactory(cmdstring, ui.mode)
+ yield ui.apply_command(cmd)