Remove useless import and global declaration, add missing whitespace
This commit is contained in:
parent
320b9cac3f
commit
2ab1d35a7c
@ -26,7 +26,7 @@ from PyQt5.QtCore import pyqtSlot, QUrl, QObject
|
|||||||
|
|
||||||
from qutebrowser.config import config, configexc
|
from qutebrowser.config import config, configexc
|
||||||
from qutebrowser.commands import cmdexc, cmdutils
|
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
|
from qutebrowser.misc import split
|
||||||
|
|
||||||
|
|
||||||
@ -290,7 +290,6 @@ class CommandRunner(QObject):
|
|||||||
window=self._win_id)
|
window=self._win_id)
|
||||||
if (result.cmdline[0] != 'repeat-command' and
|
if (result.cmdline[0] != 'repeat-command' and
|
||||||
result.cmd.mode_allowed(mode_manager.mode)):
|
result.cmd.mode_allowed(mode_manager.mode)):
|
||||||
global last_command
|
|
||||||
last_command[mode_manager.mode] = (
|
last_command[mode_manager.mode] = (
|
||||||
self._parse_count(text)[1],
|
self._parse_count(text)[1],
|
||||||
count if count is not None else result.count)
|
count if count is not None else result.count)
|
||||||
|
@ -218,11 +218,13 @@ def debug_set_fake_clipboard(s=None):
|
|||||||
else:
|
else:
|
||||||
utils.fake_clipboard = s
|
utils.fake_clipboard = s
|
||||||
|
|
||||||
|
|
||||||
@cmdutils.register()
|
@cmdutils.register()
|
||||||
@cmdutils.argument('win_id', win_id=True)
|
@cmdutils.argument('win_id', win_id=True)
|
||||||
@cmdutils.argument('count', count=True)
|
@cmdutils.argument('count', count=True)
|
||||||
def repeat_command(win_id, count=None):
|
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 numeric argument to give the command.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user