More logging

This commit is contained in:
Florian Bruhin 2014-06-03 09:50:53 +02:00
parent f82fa297b0
commit f2c60c01ae
2 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,8 @@ class CompletionView(QTreeView):
logger.debug("Ignoring completion update")
return
logger.debug("Updating completion, parts: {}, cursor_part {}".format(parts, cursor_part))
if prefix != ':':
# This is a search or gibberish, so we don't need to complete
# anything (yet)

View File

@ -121,6 +121,7 @@ class Command(MinimalLineEdit):
logger.debug("Cursor between spaces")
spaces = True
else:
logger.debug("Cursor not between spaces")
spaces = False
self._empty_item_idx = None
cursor_pos -= len(self.prefix)