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