From 2ab1d35a7c2a6496c1f45b7356c4cfd28b6781cc Mon Sep 17 00:00:00 2001 From: Jan Verbeek Date: Thu, 30 Jun 2016 03:13:40 +0200 Subject: [PATCH] Remove useless import and global declaration, add missing whitespace --- qutebrowser/commands/runners.py | 3 +-- qutebrowser/misc/utilcmds.py | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/commands/runners.py b/qutebrowser/commands/runners.py index b9ab0b6c4..5d2453560 100644 --- a/qutebrowser/commands/runners.py +++ b/qutebrowser/commands/runners.py @@ -26,7 +26,7 @@ from PyQt5.QtCore import pyqtSlot, QUrl, QObject from qutebrowser.config import config, configexc from qutebrowser.commands import cmdexc, cmdutils -from qutebrowser.utils import message, log, objreg, qtutils, usertypes +from qutebrowser.utils import message, log, objreg, qtutils from qutebrowser.misc import split @@ -290,7 +290,6 @@ class CommandRunner(QObject): window=self._win_id) if (result.cmdline[0] != 'repeat-command' and result.cmd.mode_allowed(mode_manager.mode)): - global last_command last_command[mode_manager.mode] = ( self._parse_count(text)[1], count if count is not None else result.count) diff --git a/qutebrowser/misc/utilcmds.py b/qutebrowser/misc/utilcmds.py index 9996913e5..2e4ad21bf 100644 --- a/qutebrowser/misc/utilcmds.py +++ b/qutebrowser/misc/utilcmds.py @@ -218,11 +218,13 @@ def debug_set_fake_clipboard(s=None): else: utils.fake_clipboard = s + @cmdutils.register() @cmdutils.argument('win_id', win_id=True) @cmdutils.argument('count', count=True) def repeat_command(win_id, count=None): """Repeat the last executed command, like '.' in vi. + Args: count: Which numeric argument to give the command. """