Fix lint
This commit is contained in:
parent
b42d701b0c
commit
1761d98c1b
@ -65,7 +65,6 @@ class Command:
|
||||
SpecialParams = collections.namedtuple('SpecialParams',
|
||||
['count', 'win_id'])
|
||||
|
||||
|
||||
def __init__(self, name, split, hide, instance, completion, modes,
|
||||
not_modes, needs_js, is_debug, ignore_args,
|
||||
handler, scope):
|
||||
|
@ -113,8 +113,8 @@ def debug_cache_stats():
|
||||
def debug_console():
|
||||
"""Show the debugging console."""
|
||||
try:
|
||||
debug_console = objreg.get('debug-console')
|
||||
con_widget = objreg.get('debug-console')
|
||||
except KeyError:
|
||||
debug_console = console.ConsoleWidget()
|
||||
objreg.register('debug-console', debug_console)
|
||||
debug_console.show()
|
||||
con_widget = console.ConsoleWidget()
|
||||
objreg.register('debug-console', con_widget)
|
||||
con_widget.show()
|
||||
|
@ -75,10 +75,11 @@ class ConsoleLineEdit(misc.CommandLineEdit):
|
||||
|
||||
@pyqtSlot(str)
|
||||
def on_text_changed(self, text):
|
||||
"""Update completion when text changed."""
|
||||
strings = set()
|
||||
i = 0
|
||||
while True:
|
||||
s = self._rlcompleter.complete(self.text(), i)
|
||||
s = self._rlcompleter.complete(text, i)
|
||||
if s is None:
|
||||
break
|
||||
else:
|
||||
@ -216,6 +217,7 @@ class ConsoleWidget(QWidget):
|
||||
return utils.get_repr(self, visible=self.isVisible())
|
||||
|
||||
def write(self, line):
|
||||
"""Write a line of text (without added newline) to the output."""
|
||||
self._output.append_text(line)
|
||||
|
||||
@pyqtSlot(str)
|
||||
|
Loading…
Reference in New Issue
Block a user