Small if-statement style tweak in Completer.

This commit is contained in:
Ryan Roden-Corrent 2016-09-14 22:35:05 -04:00
parent e23d611b37
commit ac03095512

View File

@ -107,7 +107,7 @@ class Completer(QObject):
log.completion.debug("Before removing flags: {}".format(before_cursor))
before_cursor = [x for x in before_cursor if not x.startswith('-')]
log.completion.debug("After removing flags: {}".format(before_cursor))
if len(before_cursor) == 0:
if not before_cursor:
# '|' or 'set|'
model = instances.get(usertypes.Completion.command)
return sortfilter.CompletionFilterModel(source=model, parent=self)