summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Erik Baxter <web@superscript.com>2012-11-23 11:38:36 -0500
committerPatrick Totzke <patricktotzke@gmail.com>2013-02-19 10:06:28 +0000
commitb3cfccca675a448265d9d2b3f9b554e34be9fa65 (patch)
tree2f0a47725f43621e43af4e93098ae93997aeb936
parentec63e9b899af1361e0da48d9031f77eccb87d3ea (diff)
Conform to PEP 8.
-rw-r--r--alot/commands/globals.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index 22bbae69..f78a50b9 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -377,7 +377,7 @@ class BufferCloseCommand(Command):
logging.info('not closing last remaining buffer as '
'global.quit_on_last_bclose is set to False')
else:
- ui.buffer_close(self.buffer,self.redraw)
+ ui.buffer_close(self.buffer, self.redraw)
@registerCommand(MODE, 'bprevious', forced={'offset': -1},
@@ -782,10 +782,11 @@ class ComposeCommand(Command):
refocus=False)
ui.apply_command(cmd)
+
@registerCommand(MODE, 'move', help='move focus in current buffer',
- arguments = [(['movement'], {'nargs':argparse.REMAINDER,
- 'help':'up, down, page up, page down'})]
-)
+ arguments=[(['movement'], {
+ 'nargs':argparse.REMAINDER,
+ 'help':'up, down, page up, page down'})])
class MoveCommand(Command):
"""move in widget"""
def __init__(self, movement=None, **kwargs):
@@ -798,6 +799,7 @@ class MoveCommand(Command):
def apply(self, ui):
ui.mainloop.process_input([self.movement])
+
class CommandSequenceCommand(Command):
"""Meta-Command that just applies a sequence of given Commands in order"""