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:
parent
b1501a691d
commit
be2c67aa19
@ -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 == '--':
|
||||
|
Loading…
Reference in New Issue
Block a user