Make argument description more clear + style fix

This commit is contained in:
Jan Verbeek 2016-07-01 19:17:50 +02:00
parent 2ab1d35a7c
commit 9678fd1e09

View File

@ -226,10 +226,9 @@ def repeat_command(win_id, count=None):
"""Repeat the last executed command, like '.' in vi. """Repeat the last executed command, like '.' in vi.
Args: Args:
count: Which numeric argument to give the command. count: Which count to pass the command.
""" """
mode_manager = objreg.get('mode-manager', scope='window', mode_manager = objreg.get('mode-manager', scope='window', window=win_id)
window=win_id)
if mode_manager.mode not in runners.last_command: if mode_manager.mode not in runners.last_command:
raise cmdexc.CommandError("You didn't do anything yet.") raise cmdexc.CommandError("You didn't do anything yet.")
cmd = runners.last_command[mode_manager.mode] cmd = runners.last_command[mode_manager.mode]