completers: ptk: Correct PTK Completion construction

This commit is contained in:
Daniel Shimon 2020-07-23 23:02:40 +03:00
parent a0439bd35f
commit c7cced30ad

View file

@ -90,7 +90,7 @@ class PromptToolkitCompleter(Completer):
comp,
-comp.prefix_len if comp.prefix_len is not None else -l,
display=comp.display,
display_meta=comp.description,
display_meta=comp.description or None,
)
else:
disp = comp[pre:].strip("'\"")