Fix lint
This commit is contained in:
parent
3f0682e5a9
commit
e294c01d7d
@ -299,7 +299,8 @@ class CompletionView(QTreeView):
|
|||||||
logger.debug("Ignoring completion update")
|
logger.debug("Ignoring completion update")
|
||||||
return
|
return
|
||||||
|
|
||||||
logger.debug("Updating completion, parts: {}, cursor_part {}".format(parts, cursor_part))
|
logger.debug("Updating completion, parts: {}, cursor_part {}".format(
|
||||||
|
parts, cursor_part))
|
||||||
|
|
||||||
if prefix != ':':
|
if prefix != ':':
|
||||||
# This is a search or gibberish, so we don't need to complete
|
# This is a search or gibberish, so we don't need to complete
|
||||||
|
@ -118,7 +118,8 @@ class Command(MinimalLineEdit):
|
|||||||
def _update_cursor_part(self):
|
def _update_cursor_part(self):
|
||||||
"""Get the part index of the commandline where the cursor is over."""
|
"""Get the part index of the commandline where the cursor is over."""
|
||||||
cursor_pos = self.cursorPosition()
|
cursor_pos = self.cursorPosition()
|
||||||
if self.text()[cursor_pos-1:cursor_pos+1] == ' ':
|
snippet = slice(cursor_pos - 1, cursor_pos + 1)
|
||||||
|
if self.text()[snippet] == ' ':
|
||||||
logger.debug("Cursor between spaces")
|
logger.debug("Cursor between spaces")
|
||||||
spaces = True
|
spaces = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user