fish completions dont want quoting

This commit is contained in:
Kovid Goyal 2021-07-16 19:13:26 +05:30
parent f4b3948168
commit cbbd9f475e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -283,9 +283,9 @@ def bash_output_serializer(ans: Completions) -> str:
@output_serializer
def fish_output_serializer(ans: Completions) -> str:
lines = []
for matches in ans.match_groups.values():
for description, matches in ans.match_groups.items():
for word in matches:
lines.append(shlex.quote(word))
lines.append(word.replace('\n', ''))
# debug('\n'.join(lines))
return '\n'.join(lines)
# }}}