Don't filter completion parts if there's only one.

This fixes a regression (completion not showing with :) introduced in
b1501a691d.
This commit is contained in:
Florian Bruhin 2014-12-27 22:50:28 +01:00
parent b1501a691d
commit be2c67aa19

View File

@ -150,6 +150,9 @@ class Completer(QObject):
Return:
A (parts, cursor_part) tuple with the modified values.
"""
if parts == ['']:
# Empty commandline, i.e. only :.
return [''], 0
filtered_parts = []
for i, part in enumerate(parts):
if part == '--':