Avoid double filter for completions in zsh

This commit is contained in:
Kovid Goyal 2018-08-24 08:13:59 +05:30
parent 8b02b89bd6
commit 0e0e25f986
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -38,7 +38,7 @@ def zsh_input_parser(data):
def zsh_output_serializer(ans):
lines = []
for description, matches in ans.match_groups.items():
output = ['compadd', '-J', shlex.quote(description), '-X', shlex.quote(description), '--']
output = ['compadd', '-U', '-J', shlex.quote(description), '-X', shlex.quote(description), '--']
for word, description in matches.items():
output.append(shlex.quote(word))
lines.append(' '.join(output) + ';')